| java.lang.Object org.apache.tomcat.jni.Local
Local | public class Local (Code) | | Local socket
author: Mladen Turk version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
native public static long | accept(long sock) Accept a new connection request
Parameters: sock - The socket we are listening on. Parameters: pool - The pool for the new socket. | native public static int | bind(long sock, long sa) | native public static int | connect(long sock, long sa) Issue a connection request to a socket either on the same machine
or a different one. | native public static long | create(String path, long cont) Create a socket. | native public static int | listen(long sock, int backlog) Listen to a bound socket for connections.
Parameters: sock - The socket to listen on Parameters: backlog - The number of outstanding connections allowed in the socketslisten queue. |
accept | native public static long accept(long sock) throws Exception(Code) | | Accept a new connection request
Parameters: sock - The socket we are listening on. Parameters: pool - The pool for the new socket. A copy of the socket that is connected to the socket thatmade the connection request. This is the socket which shouldbe used for all future communication. |
bind | native public static int bind(long sock, long sa)(Code) | | Bind the socket to its associated port
Parameters: sock - The socket to bind Parameters: sa - The socket address to bind toThis may be where we will find out if there is any other processusing the selected port. |
connect | native public static int connect(long sock, long sa)(Code) | | Issue a connection request to a socket either on the same machine
or a different one.
Parameters: sock - The socket we wish to use for our side of the connection Parameters: sa - The address of the machine we wish to connect to.Unused for NT Pipes. |
create | native public static long create(String path, long cont) throws Exception(Code) | | Create a socket.
Parameters: path - The address of the new socket. Parameters: cont - The parent pool to use The new socket that has been set up. |
listen | native public static int listen(long sock, int backlog)(Code) | | Listen to a bound socket for connections.
Parameters: sock - The socket to listen on Parameters: backlog - The number of outstanding connections allowed in the socketslisten queue. If this value is less than zero, for NT pipesthe number of instances is unlimite. |
|
|