Re: [twsocket] TCP LocalPort...

2010-10-09 Thread Francois PIETTE
netstat can show all open ports. Does it do trial and error on all port numbers? Or does the OS know and MS has not published how to get the information? There are possibilities to retrieve windows internal informations, but they are out of scope of a socket component. The IP Helper API has fun

Re: [twsocket] TCP LocalPort...

2010-10-09 Thread zayin
Hello, >Do you really need to determine free local port? By what you wrote it >doesn't seem you need that. Yes. >You need a free local port if you are making a server type of >application, not a client application. I am sorry, that is not correct. It is a requirement of the protocol that the po

Re: [twsocket] TCP LocalPort...

2010-10-09 Thread Zvone
Do you really need to determine free local port? By what you wrote it doesn't seem you need that. You need a free local port if you are making a server type of application, not a client application. If you connect to remote server (then you are making a client application) you connect to whatever

Re: [twsocket] TCP LocalPort...

2010-10-09 Thread Francois PIETTE
How can I determine if a local port number is in use? Trial and error. If I cannot determine it before calling connect, how do I catch the error that the port is in use? Exception handler. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of