F
firstshine
Unregistered / Unconfirmed
GUEST, unregistred user!
我想建立一个windows环境下的tcpip的server,访问这个server的客户机是运行unix的
请问我的server的类型是threadblocking 还是noblocking好?
我现在在windows下做一个client来访问threadblocking类型的server,用
clientsocket.Socket.SendText可以写数据到server,但是在clientsocket的onread中
没法读取server发过来的信息。而且如果连接一旦建立,退出client程序的话,会出错。
请问,如何写访问threadblocking类型server的client?最好有个例子。谢谢
delphi的帮助:
When ClientType is ctBlocking, use a TWinSocketStream object for reading and
writing. TWinSocketStream prevents the application from hanging indefinitely
if a problem occurs while reading or writing. It also can wait for the socket
connection to indicate its readiness for reading.
有些似懂非懂,如何做?
是否当serversocket是threadblocking的,那么访问她的clientsocket必须是ctblocking
类型的?
请问我的server的类型是threadblocking 还是noblocking好?
我现在在windows下做一个client来访问threadblocking类型的server,用
clientsocket.Socket.SendText可以写数据到server,但是在clientsocket的onread中
没法读取server发过来的信息。而且如果连接一旦建立,退出client程序的话,会出错。
请问,如何写访问threadblocking类型server的client?最好有个例子。谢谢
delphi的帮助:
When ClientType is ctBlocking, use a TWinSocketStream object for reading and
writing. TWinSocketStream prevents the application from hanging indefinitely
if a problem occurs while reading or writing. It also can wait for the socket
connection to indicate its readiness for reading.
有些似懂非懂,如何做?
是否当serversocket是threadblocking的,那么访问她的clientsocket必须是ctblocking
类型的?