Hi,
I have a problem: I have a script that needs to check if a tcp port is used. if its not used it shall start a program, if the port is used it should do nothing.
The tcp port I want to check is 5555.
I read something about winsock but didnt really get anywhere :S.
I could do it by using the netstat ´command and put the output in a file but thats taking to long as it needs to be done under 300ms (milisecounds).
help is greatly appreciated.
Regards Max
I have a problem: I have a script that needs to check if a tcp port is used. if its not used it shall start a program, if the port is used it should do nothing.
The tcp port I want to check is 5555.
I read something about winsock but didnt really get anywhere :S.
I could do it by using the netstat ´command and put the output in a file but thats taking to long as it needs to be done under 300ms (milisecounds).
help is greatly appreciated.
Regards Max