S
samen
Unregistered / Unconfirmed
GUEST, unregistred user!
server:
send:array[1..10] of string;
send[1]:='sss';
send[2]:='ss':
...
serversocket1.socket.connections[0].sendbuf(pointer(send[1])^,10);
client:
rece:arrary[1..10] of string;
setlength(rece[1],10)
clientsocket1.socket.receivebuf(pointer(rece[1])^,10);
能接收rece[1]的东西,可rece[2]是空的。
以上能发送和接收数组某个元素,而我的目的是发送和接收整个数组,那该如何处理!
send:array[1..10] of string;
send[1]:='sss';
send[2]:='ss':
...
serversocket1.socket.connections[0].sendbuf(pointer(send[1])^,10);
client:
rece:arrary[1..10] of string;
setlength(rece[1],10)
clientsocket1.socket.receivebuf(pointer(rece[1])^,10);
能接收rece[1]的东西,可rece[2]是空的。
以上能发送和接收数组某个元素,而我的目的是发送和接收整个数组,那该如何处理!