Re: [twsocket] Sending Record Type Data over tcp

2009-06-29 Thread RTT
Hello/Merhaba, Why don't you use the algorithm logic in HTTP and explicitly state how many bytes will follow in a header? for example this is how it is done in chunked encoding in HTTP (pseudo code): 10CRLF <10 bytes of data> 20CRLF <20 bytes of data> 0CRLF Regards, And an extra first re

Re: [twsocket] Sending Record Type Data over tcp

2009-06-29 Thread Fastream Technologies
Hello/Merhaba, Why don't you use the algorithm logic in HTTP and explicitly state how many bytes will follow in a header? for example this is how it is done in chunked encoding in HTTP (pseudo code): 10CRLF <10 bytes of data> 20CRLF <20 bytes of data> 0CRLF Regards, SZ On Mon, Jun 29, 2009 at 6

[twsocket] Sending Record Type Data over tcp

2009-06-29 Thread Alper Albayrak
My record type is like; TData = record age: integer; end; PData = ^TData; I send data as follows succesfully; Send(Data, SizeOf(TData)); and receive; Receive(Data, SizeOf(TData)); What i want to do is to send a couple of record types (seperately); and distinguish them on the client side.