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 <end of stream> Regards, SZ On Mon, Jun 29, 2009 at 6:02 PM, Alper Albayrak <alper...@gmail.com> wrote: > 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. > i tried moving data into a PChar variable, ant put some distinguisher in > front of data, > but this didnt worked out, or i couldnt.. > > Can someone help me out? > > Thanks.. > -- > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be