D danceofwind Unregistered / Unconfirmed GUEST, unregistred user! 2000-11-25 #2 大概就是这样 len:integer; buf:array[0..1023] of char; len := sendbuf(buf,1024); len := receivebuf(buf,1024);
大概就是这样 len:integer; buf:array[0..1023] of char; len := sendbuf(buf,1024); len := receivebuf(buf,1024);
N natha Unregistered / Unconfirmed GUEST, unregistred user! 2000-11-25 #3 我如果用sendbuf从clientsocket向serversocket传数据,两端又应该怎样写呢?
P Pipi. Unregistered / Unconfirmed GUEST, unregistred user! 2000-11-26 #4 client端: ClientSock.Socket.SendBuf(buf,长度); server端: 写serversock的OnClientRead事件,事件中Socket.ReceiveBuf 另外,如果你发送、接收的是文本,可以用sendtext、receivetext
client端: ClientSock.Socket.SendBuf(buf,长度); server端: 写serversock的OnClientRead事件,事件中Socket.ReceiveBuf 另外,如果你发送、接收的是文本,可以用sendtext、receivetext