powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / C++ [игнор отключен] [закрыт для гостей] / Using TCP Sockets in Borland
4 сообщений из 4, страница 1 из 1
Using TCP Sockets in Borland
    #33809438
Brian
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Hey,

Quick qestion about converting the default server socket component in Borland C++ Builder 6 into using TCP rather than UDP. It appears that UDP is being used and occassionally packets are recieved out of order so I would prefer that TCP was used instead. Is there any way to easily do this without using a custom component or the Windows API?

Thanks,

Brian
...
Рейтинг: 0 / 0
Using TCP Sockets in Borland
    #33812676
AndreiNz
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
I am not sure if you can use sendto/receivefrom logic in TCP. If you can than you should replace UDP component you are using with TCP. What kind of component for UDP are you using?
...
Рейтинг: 0 / 0
Using TCP Sockets in Borland
    #33814969
StrikeTheCore
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
I am using the default Client Socket (TClientSocket). I had not heard anything about not being able to use sendto/recievefrom logic with tcp/ip so I will have to look into that too.

-Brian
...
Рейтинг: 0 / 0
Using TCP Sockets in Borland
    #33820501
AndreiNz
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
I've checked the source in Delphi (that where it originates from). It is not clear to me both from the documentation and from the source but I believe that TClientSocket is a TCP socket. This suggests that you are in TCP connection already. If this is correct then check if your packets are sent in right order.
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / C++ [игнор отключен] [закрыт для гостей] / Using TCP Sockets in Borland
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]