[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

Re: [twsocket] Sending Record Type Data over tcp

2009-06-30 Thread Alper Albayrak
Yes, Im using TCP. I solved my problem (at least in here) with replacing Move() into CopyMemory() I'm using LineMode, to receive all data sent. (My data size is 49b in total and no string data in it) Are there any conflicts i may encounter in the approach stated below? (I intend to replace Rcvd

[twsocket] Package Count / Wireshark

2009-09-09 Thread Alper Albayrak
i used wireshark to monitor activity on the port i m listening on.Protocol is TCP and the server was build with ICS TWSocketServer. Monitoring packages arrived, I see that one of the packages (505 byte) is divided into 3 packages. What i want to ask; is this the way tcp protocol transfers data

[twsocket] The address that client is connected (2 or more IPs assinged to server)

2010-02-12 Thread Alper Albayrak
I have two IPs assigned to server machine. And TWSocketserver working with Addr = 0.0.0.0 can i resolve the ip address that the client is connected. For example 2 clients, first is connecting to address 10.100.10.1, second is connecting to 10.100.10.2 But two of them is hosted with same server. I

Re: [twsocket] The address that client is connected (2 or more IPs assinged to server)

2010-02-12 Thread Alper Albayrak
' + Client.GetXAddr + ' and port ' + Client.GetXPort + ' by client at '+ Client.GetPeerAddr+':'+ Client.GetPeerPort; // Code end; Lester Alper Albayrak wrote: I have two IPs assigned to server machine. And TWSocketserver working with Addr = 0.0.0.0 can i resolve the ip address that the client