So basically I want my serverocket.accept () to be applied to any other port except 1218 Can go Can I block by call this port because 1218 is connected to another thread?
I have good news and bad news The good news is that to avoid listening to a particular harbor You do not have to do anything special. The bad news is that any given serverket
listens for a connection on a port only.
The port is that how many potential services customers want to connect with, some services listen to connections on many ports, but they need a separate socket for each one every There is no point for the server to listen to the port (and not one at all).
You can only separate one port number from 1218 when you tie your serversecet
(whether through constructor or separately bind ()
).
No comments:
Post a Comment