[twsocket] WSOCKET sending/receiving files

2005-12-09 Thread Selahattin Erkoc
hi since 3 weeks I'm trying to send a file with TWSocket and TWSocketServer components.. my idea was to send records like: pFileBuf = ^TFileBuf; TFileBuf = packed record ID : Integer; bufSize : Integer; buf: array[0..1023] of Byte; end; so I tried to receive these records in

[twsocket] TWsocket/TWsocketServer sending/receiving Files

2005-11-17 Thread Selahattin Erkoc
hi, I have used both compenets to send/receive text but now I'm trying to use it for sending files.. so I tried just simple to open the file binary, read it and send it to the Server TCommand = record ID : Integer; end; TFileBuf = record ID : Integer; bufSize : Integer; buf: a