Hello everyone,


How to check whether a port on the local machine is occupied by another thread/process? (only whether or not occupied is ok, no need to know which party occupied the port.)

Any samples or APIs to use?


thanks in advance,
George