Thread
:
Java how to listen on a port?
View Single Post
06-13-2012, 03:36 PM
PM User
|
#
7
Fou-Lu
God Emperor
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,650
Thanks: 4
Thanked 2,451 Times in 2,420 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.
Fou-Lu
View Public Profile
Find More Posts by Fou-Lu