Connect a TCP client process to a remote server.
Connect a TCP client process to a remote server.
the termination result of the client process.
the client config
a process that takes network ByteBuffer's as input and output.
a tuple with the local address the client is bound to and a RIChan returning the termination result of the client process.
Create a TCP server process that spawns a new servlet to handle each new client connection.
Create a TCP server process that spawns a new servlet to handle each new client connection.
a TCP server config
a process type from which new servlets are instantiated.
the socket address the server has been bound to.
Return the platform to which this connector is attached to.
Return the platform to which this connector is attached to.
All process instances created by launchTcpClient and launchTcpServer are launched over this platform.
the underlying platform.
Shutdown.
Shutdown.
Close all threading resources allocated by the platform (e.g. the selector thread).
Shutdown and close all resources allocated by the platform (e.
Shutdown and close all resources allocated by the platform (e.g. the selector thread).
Create a TCP server channel.
Create a TCP server channel.
a TCP server configuration
the local socket address the server has been bound to.
Create a TCP connection to a remote server.
Create a TCP connection to a remote server.
the client configuration.
a tuple with the local address the client is bound to and a RIChan returning the client socket once it is connected.
Create a "connected" UDP socket restricted to a remote peer.
Create a "connected" UDP socket restricted to a remote peer.
the peer address
a list of datagram socket options
the datagram socket.
Create a UDP datagram socket.
Create a UDP datagram socket.
the local address this socket is bound to
a list of datagram socket options
the datagram socket.
Connect a TCP client process to a remote server.
Connect a TCP client process to a remote server.
the termination result of the client process.
the local address the client must be bound to
the remote server address
a process that takes network ByteBuffer's as input and output.
socket options that must be applied to the client socket once it is connected
a RIChan returning the termination result of the client process.
Connect a TCP client process to a remote server.
Connect a TCP client process to a remote server.
the termination result of the client process.
the remote server address
a process that takes network ByteBuffer's as input and output.
socket options that must be applied to the client socket once it is connected
a RIChan returning the termination result of the client process.
Connect a TCP client process to a remote server.
Connect a TCP client process to a remote server.
the termination result of the client process.
the remote server host name
the remote server port
a process that takes network ByteBuffer's as input and output.
a RIChan returning the termination result of the client process.
Create a TCP server process that spawns a new servlet to handle each new client connection.
Create a TCP server process that spawns a new servlet to handle each new client connection.
the local server address on which the server accepts connections
a process type from which new servlets are instantiated.
a list of server socket options applied to the server socket.
a list of socket options applied to each client socket accepted.
the socket address the server has been bound to.
Create a TCP server process that spawns a new servlet to handle each new client connection.
Create a TCP server process that spawns a new servlet to handle each new client connection.
the local server address on which the server accepts connections
a process type from which new servlets are instantiated.
a list of socket options applied to each client socket accepted.
the socket address the server has been bound to.
Create a TCP server process that spawns a new servlet to handle each new client connection.
Create a TCP server process that spawns a new servlet to handle each new client connection.
the local server interface
the local server port
a process type from which new servlets are instantiated.
a list of server socket options applied to the server socket.
a list of socket options applied to each client socket accepted.
the socket address the server has been bound to.
Create a TCP server process that spawns a new servlet to handle each new client connection.
Create a TCP server process that spawns a new servlet to handle each new client connection.
the local server interface
the local server port
a process type from which new servlets are instantiated.
a list of socket options applied to each client socket accepted.
the socket address the server has been bound to.
Create a TCP server process that spawns a new servlet to handle each new client connection.
Create a TCP server process that spawns a new servlet to handle each new client connection.
a process type from which new servlets are instantiated.
a list of socket options applied to each client socket accepted.
the socket address the server has been bound to.
Create a TCP server channel.
Create a TCP server channel.
a TCP server configuration
a tuple with the local socket address the server has been bound to, and a stream of client sockets filled in progressively each time a new client connection is accepted.
Create a TCP server channel.
Create a TCP server channel.
the local server interface
the local server port
a list of server socket options applied to the server socket.
a list of socket options applied to each client socket accepted.
a stream of client sockets filled in progressively each time a new client connection is accepted.
Create a TCP server channel.
Create a TCP server channel.
the local server interface
the local server port
a list of socket options applied to each client socket accepted.
a stream of client sockets filled in progressively each time a new client connection is accepted.
Create a TCP server channel.
Create a TCP server channel.
a tuple with the local socket address the server has been automatically bound to, and a stream of client sockets filled in progressively each time a new client connection is accepted.
Create a TCP connection to a remote server.
Create a TCP connection to a remote server.
the remote server address
a list of socket options.
a RIChan returning the client socket once it is connected.
Create a TCP connection to a remote server.
Create a TCP connection to a remote server.
the remote server host name
the remote server port
a list of socket options.
a RIChan returning the client socket once it is connected.
Create a UDP datagram socket.
Create a UDP datagram socket.
the local name of the interface
the local port this socket is bound to
a list of datagram socket options
the datagram socket.
This class encapsulates a selector thread that dispatches tasks on sockets in a non-blocking manner. The number of connection that can be handled by a selector is limited to FD_SETSIZE, which is OS specific. See http://www.kegel.com/c10k.html#nb.select.
See also how to change registry settings on windows here: http://www.gridgainsystems.com/wiki/display/GG15UG/Troubleshooting#Troubleshooting-java.net.BindExceptionOnWindows
If you want to handle many connections, either increase the value or create several
NetSystem
s (last solution scales much better in terms of performance).