----- Original Message ----- From: "Francois Piette" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Wednesday, August 24, 2005 7:34 AM Subject: Re: [twsocket] Difference between LocalAddr and Addr
>> 1. I am not sure I understand the difference between "Local Addr" and >> "Addr" on the twsocket component. I am guessing that one of them >> (probably >> Local Addr) is the IP address that the component is bound to and the >> other >> address is the IP address we are sending to? > > Yes it is. > >> 2. How to find an open port to send and receive from? > > Just try and check for error "address already in use" exception. Alternatively, if you just want a temporary random port to listen on you can specify port 0. The OS will then assign an unused port. There is a winsock method to then get the port it chose, but I can't remember what it is off the top of my head. Dan -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be