Java how to listen on a port?
View Single Post
06-13-2012, 04:36 PM
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Thanked 2,597 Times in 2,566 Posts
Why? If you can't respond to listening on the port, then there isn't really a need to establish it.
That's what you pretty much have to do. Set up a server socket, then while true accept from it. That's all you need to do to listen on a port.
View Public Profile
Find More Posts by Fou-Lu