|
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The interface for the different type of sockets.
| Field Summary | |
static java.lang.String |
version_id
|
| Method Summary | |
void |
close()
Closes this socket. |
void |
create(int port)
Creates the socket. |
void |
create(java.lang.String host,
int port)
Creates the socket. |
java.lang.String |
getHostAddress()
Returns the IP address of the host of the packet we received. |
java.io.ByteArrayInputStream |
receive(int maxRecvSize)
Receives a packet from this socket. |
void |
send(byte[] packet)
Sends a packet from this socket. |
| Field Detail |
public static final java.lang.String version_id
| Method Detail |
public void create(int port)
throws java.io.IOException
port - The local port number were we receive (listen for)
packets.create(String, int)
public void create(java.lang.String host,
int port)
throws java.io.IOException
host - The name of the host that is to receive our packetsport - The port number of the hostcreate(int)public java.lang.String getHostAddress()
public java.io.ByteArrayInputStream receive(int maxRecvSize)
throws java.io.IOException
maxRecvSize - the maximum number of bytes to receive
public void send(byte[] packet)
throws java.io.IOException
packet - the packetpublic void close()
|
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||