Package org.jgroups.demos
Class EchoServer
- java.lang.Object
-
- org.jgroups.demos.EchoServer
-
public class EchoServer extends java.lang.Object
Simple TCP server replying back to client with connection information (peer address etc)- Since:
- 4.1.8
- Author:
- Bela Ban
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
EchoServer.ConnectionHandler
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
protected java.net.ServerSocket
srv_sock
protected java.util.concurrent.ExecutorService
thread_pool
-
Constructor Summary
Constructors Constructor Description EchoServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
protected void
start(java.net.InetAddress bind_addr, int port)
-