-
Assigning ports.
I'm am wanting to create a socket server that assigns which ports the server
sends the customers data. Such as, I get a socket connection from someone,
I look at the IP address and from that I decide which port to send them data.
Using myServerSocket.accept(), I get a random port. I believe that I need
to get the socket from the accept call so I can tell who it is, then reassign
the port and start sending them data.
I've been looking at ServerSocket, Socket, SocketImpl, and the interface
SocketImplFactory. Am I on the right track, or could someone point me in
the right direction.
Thanks for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks