|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.squawk.platform.posix.natives.SocketImpl
public abstract class SocketImpl
| Nested Class Summary | |
|---|---|
static class |
SocketImpl.sockaddr_inImpl
|
| Nested classes/interfaces inherited from interface com.sun.squawk.platform.posix.natives.Socket |
|---|
Socket.sockaddr_in |
| Field Summary |
|---|
| Fields inherited from interface com.sun.squawk.platform.posix.natives.Socket |
|---|
AF_INET, INADDR_ANY, INET_ADDRSTRLEN, INSTANCE, IPPROTO_TCP, SO_ACCEPTCONN, SO_BROADCAST, SO_DEBUG, SO_DONTROUTE, SO_ERROR, SO_KEEPALIVE, SO_OOBINLINE, SO_RCVBUF, SO_RCVLOWAT, SO_RCVTIMEO, SO_REUSEADDR, SO_SNDBUF, SO_SNDLOWAT, SO_SNDTIMEO, SO_TYPE, SOCK_DGRAM, SOCK_RAW, SOCK_STREAM, SOL_SOCKET, TCP_NODELAY |
| Constructor Summary | |
|---|---|
SocketImpl()
|
|
| Method Summary | |
|---|---|
int |
accept(int arg0,
Socket.sockaddr_in arg1,
IntByReference arg2)
accept a connection from a client |
int |
bind(int arg0,
Socket.sockaddr_in arg1,
int arg2)
bind a socket to a port |
int |
connect(int arg0,
Socket.sockaddr_in arg1,
int arg2)
initiate a connection on a socket. |
int |
getsockopt(int arg0,
int arg1,
int arg2,
ByReference arg3,
IntByReference arg4)
get a socket option |
String |
inet_ntop(int arg0,
IntByReference arg1,
Pointer arg2,
int arg3)
Takes an IPv4 Internet address and returns string representing the address in `.' notation |
boolean |
inet_pton(String arg0,
IntByReference arg1)
Interprets the specified character string as an Internet address, placing the address into the structure provided. |
int |
listen(int arg0,
int arg1)
listen for connections on socket |
int |
setsockopt(int arg0,
int arg1,
int arg2,
ByReference arg3,
int arg4)
set a socket option |
int |
shutdown(int arg0,
int arg1)
initiate a connection on a socket. |
int |
socket(int arg0,
int arg1,
int arg2)
socket() creates an endpoint for communication and returns a descriptor. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.cldc.jna.Library |
|---|
initConstInt |
| Constructor Detail |
|---|
public SocketImpl()
| Method Detail |
|---|
public int getsockopt(int arg0,
int arg1,
int arg2,
ByReference arg3,
IntByReference arg4)
Socket
getsockopt in interface Socketarg0 - socket descriptorarg4 - On return, the by-reference int will contain the size of the option_value data
public int bind(int arg0,
Socket.sockaddr_in arg1,
int arg2)
Socket
bind in interface Socketarg0 - socket descriptorarg1 - ptr to a sockaddr_in bufferarg2 - size of sockaddr_in
public int listen(int arg0,
int arg1)
Socket
listen in interface Socketarg0 - socket descriptor
public int shutdown(int arg0,
int arg1)
Socket
shutdown in interface Socketarg0 - socket descriptorarg1 - If how is SHUT_RD, further receives will be disallowed. If how
is SHUT_WR, further sends will be disallowed. If how is SHUT_RDWR, further sends and
receives will be disallowed.
public String inet_ntop(int arg0,
IntByReference arg1,
Pointer arg2,
int arg3)
Socket
inet_ntop in interface Socketarg0 - family (should be AF_INET)arg1 - a pointer to the src internet addressarg2 - a pointer to tmp buffer used to store characters for the result.arg3 - the size of the tmp dst buffer
public int socket(int arg0,
int arg1,
int arg2)
Socket
socket in interface Socketarg0 - specifies a communications domain within which communication
will take place; this selects the protocol family which should
be used. The currently understood formats are:
AF_UNIX, AF_INET, AF_ISO, AF_NS, AF_IMPLINKarg1 - specifies the semantics of communication. Currently defined types are:
SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_SEQPACKET, SOCK_RDMarg2 - The protocol number to use is particular to the
communication domain in which communication is to take place; see
protocols(5).
public int accept(int arg0,
Socket.sockaddr_in arg1,
IntByReference arg2)
Socket
accept in interface Socketarg0 - socket descriptorarg1 - ptr to a SockAddr_In buffer that will contain the address of the remote clientarg2 - pointer to int containing the size of an IP address
public int connect(int arg0,
Socket.sockaddr_in arg1,
int arg2)
Socket
connect in interface Socketarg0 - socket descriptorarg1 - ptr to a sockaddr_in bufferarg2 - pass in sockaddr_in.size()
public int setsockopt(int arg0,
int arg1,
int arg2,
ByReference arg3,
int arg4)
Socket
setsockopt in interface Socketarg0 - socket descriptorarg4 - (option_value.size()
public boolean inet_pton(String arg0,
IntByReference arg1)
Socket
inet_pton in interface Socketarg1 - (OUT) on sucessful return will contain the 32 bits of an IPv4 "struct in_addr"
|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||