imo mina is overkill. Just go with a simple socket and serversocket implementation.
1 - Create a ServerSocket and bind it to a port number. 2 - Poll on the port. Polling is fine for single threads but if you need this to scale for a lot of connections, you will need java.nio and use selectors along with ServerSocketChannel. 3 - The client will probably use the Socket class and connect to your server. Use it's InputStream and OutputStream to receive and send messages.Last edit: 2009-06-03 10:01:35 |