| 
 | " 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.windows.natives.SocketImpl
public class SocketImpl
| Nested Class Summary | |
|---|---|
| static class | SocketImpl.sockaddr_inImpl | 
| Nested classes/interfaces inherited from interface com.sun.squawk.platform.windows.natives.Socket | 
|---|
| Socket.sockaddr_in | 
| Field Summary | |
|---|---|
| static int | AF_INET | 
| static int | INADDR_ANY | 
| static int | INET_ADDRSTRLEN | 
| static int | SO_ACCEPTCONN | 
| static int | SO_BROADCAST | 
| static int | SO_DEBUG | 
| static int | SO_DONTROUTE | 
| static int | SO_KEEPALIVE | 
| static int | SO_OOBINLINE | 
| static int | SO_REUSEADDR | 
| static int | SOCK_DGRAM | 
| static int | SOCK_RAW | 
| static int | SOCK_STREAM | 
| static int | SOL_SOCKET | 
| Fields inherited from interface com.sun.squawk.platform.windows.natives.Socket | 
|---|
| INSTANCE | 
| 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)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 | initConstInt(int index) | 
|  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 | 
| Field Detail | 
|---|
public static final int AF_INET
public static final int SOCK_STREAM
public static final int SOCK_DGRAM
public static final int SOCK_RAW
public static final int INADDR_ANY
public static final int INET_ADDRSTRLEN
public static final int SOL_SOCKET
public static final int SO_DEBUG
public static final int SO_ACCEPTCONN
public static final int SO_REUSEADDR
public static final int SO_KEEPALIVE
public static final int SO_DONTROUTE
public static final int SO_BROADCAST
public static final int SO_OOBINLINE
| Constructor Detail | 
|---|
public SocketImpl()
| Method Detail | 
|---|
public int initConstInt(int index)
initConstInt in interface Library
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)
Socket
bind in interface Socketarg0 - socket descriptorarg1 - ptr to a SockAddr_In buffer
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 | |||||||||