Hello,

WD>     SetLength(LilBuf, 4096);
WD>     Cnt := Winsock.recv(MySocket, LilBuf[1], BytesRead, 0);

This is wrong, recv expect there the max size it may fill in the buffer,
so it should be:
   Cnt := Winsock.recv(MySocket, LilBuf[1], 4096, 0);

BTW for winsock communication I use TWSocket witch is available on
http://www.overbyte.be It is free, included source, exellent support
mailing list, and it does all this job for you :)

---
Rgds, Wilfried
http://www.mestdagh.biz

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to