I need to WSocket->Connect(); first because I need to know which port will be used for sending since this port will be the one where I'll be receiving the response.
However, apparently you cannot combine a WSocket->Connect() and WSocket->Listen() without doing a WSocket->Close() inbetween since this will result in an "Address already in use"-exception. Kris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: zondag 2 april 2006 12:40 To: twsocket@elists.org Subject: Re: [twsocket] THttpCli and UPnP devices > Is it OK to close the socket after sending and then immediately open > it again for listening on that same port ? You may get fast UDP responses, so I'd have thought it best to have a listening port open before sending your request, but I've not tried sending on a port already open for listening. Angus -- 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 -- 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