Hi,
I have this piece of code which checks if a port is available:
However, sometimes this function returns true (i.e. the port is availble), but when a external C program opens the same port, it fails to open.
I wonder if
Java releases the port immediately in OS level when i do this 'srv.close()'. Otherwise, I don't see why another external C programs fail to open the same port.
Or am I missing anything?
Thank you.