Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / C++ [игнор отключен] [закрыт для гостей] / Using TCP Sockets in Borland / 4 сообщений из 4, страница 1 из 1
22.06.2006, 16:47
    #33809438
Brian
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Using TCP Sockets in Borland
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
24.06.2006, 00:24
    #33812676
AndreiNz
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Using TCP Sockets in Borland
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
26.06.2006, 16:57
    #33814969
StrikeTheCore
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Using TCP Sockets in Borland
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
28.06.2006, 23:44
    #33820501
AndreiNz
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Using TCP Sockets in Borland
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
Форумы / C++ [игнор отключен] [закрыт для гостей] / Using TCP Sockets in Borland / 4 сообщений из 4, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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