Re: [twsocket] GetPeerName

2005-08-22 Thread Francois Piette
> I am using GetPeerName on an outgoing TXSocket to get/confirm the server > details in the OnSessionConnected event. I am specifically connecting to a > fixed address and a fixed port. The Address is returned correctly, however > the port number (PeerName.sin_port) is never correct. > > If I op

Re: [twsocket] GetPeerName

2005-08-22 Thread Wilfried Mestdagh
Hello John, If you connect to a server, then the server accept the connection into a local port which is different from the listening port. This is how winsock works, because the Listening port stay listening. this cannot be different because if the same port should be used for data transfer then

[twsocket] GetPeerName

2005-08-22 Thread Dr John M Porteous
I am using GetPeerName on an outgoing TXSocket to get/confirm the server details in the OnSessionConnected event. I am specifically connecting to a fixed address and a fixed port. The Address is returned correctly, however the port number (PeerName.sin_port) is never correct. If I open a DOS win