自己用indy idtcpserver和idtcpclient的总结

idtcpclient  要自己建个线程来侦听信息  

发送stream是时候

writeinteger(stream.size);

writestream(stream);

server接收就

readstream(steam);



server关闭的时候要发个信息告诉client ,client自己disconnect;

client关闭的时候也要告诉server,server中athread.connect.disconnect;



你可能感兴趣的:(server,Stream)