H
hdf001
Unregistered / Unconfirmed
GUEST, unregistred user!
语句如下:
clientsocket1.Active:=false;
clientsocket1.Address:='202.204.59.*';
clientsocket1.Port:=1024;
clientsocket1.Active:=true;
clientsocket1.Socket.SendText('123');
当设定clientsocket1的clienttype属性为ctBlocking时,以上语句可以正常运行;
当设定clientsocket1的clienttype属性为ctNonBlocking时,以上语句不能正常运行,clientsocket1的active无法设为true,请问是为什么?
clientsocket1.Active:=false;
clientsocket1.Address:='202.204.59.*';
clientsocket1.Port:=1024;
clientsocket1.Active:=true;
clientsocket1.Socket.SendText('123');
当设定clientsocket1的clienttype属性为ctBlocking时,以上语句可以正常运行;
当设定clientsocket1的clienttype属性为ctNonBlocking时,以上语句不能正常运行,clientsocket1的active无法设为true,请问是为什么?