Listen on multiple ports with one socket?

R

Ryan Stewart

Is there a way for a server type program to listen on multiple ports besides
using multiple ServerSockets? Something like a ServerSocket that listens to
a range of ports?
 
T

Tor Iver Wilhelmsen

Ryan Stewart said:
Is there a way for a server type program to listen on multiple ports besides
using multiple ServerSockets? Something like a ServerSocket that listens to
a range of ports?

Look into the java.nio.channels.* classes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top