|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.jni.Local
public class Local
Local socket
Constructor Summary | |
---|---|
Local()
|
Method Summary | |
---|---|
static long |
accept(long sock)
Accept a new connection request |
static int |
bind(long sock,
long sa)
Bind the socket to its associated port |
static int |
connect(long sock,
long sa)
Issue a connection request to a socket either on the same machine or a different one. |
static long |
create(java.lang.String path,
long cont)
Create a socket. |
static int |
listen(long sock,
int backlog)
Listen to a bound socket for connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Local()
Method Detail |
---|
public static long create(java.lang.String path, long cont) throws java.lang.Exception
path
- The address of the new socket.cont
- The parent pool to use
java.lang.Exception
public static int bind(long sock, long sa)
sock
- The socket to bindsa
- The socket address to bind to
This may be where we will find out if there is any other process
using the selected port.public static int listen(long sock, int backlog)
sock
- The socket to listen onbacklog
- The number of outstanding connections allowed in the sockets
listen queue. If this value is less than zero, for NT pipes
the number of instances is unlimite.public static long accept(long sock) throws java.lang.Exception
sock
- The socket we are listening on.pool
- The pool for the new socket.
java.lang.Exception
public static int connect(long sock, long sa)
sock
- The socket we wish to use for our side of the connectionsa
- The address of the machine we wish to connect to.
Unused for NT Pipes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |