Class TCPSocket

java.lang.Object
uk.co.westhawk.snmp.net.TCPSocket
All Implemented Interfaces:
ContextSocketFace

public class TCPSocket extends Object implements ContextSocketFace
This is a wrapper class around the standard Socket. This sends packets over TCP.

This is part of what is called "Reliable SNMP". SNMP usually goes over UDP. That is why there is a retry mechanisme in SNMP. Sending SNMP over TCP will only work is your agent listens on TCP. See RFC 3430

When listening for incoming packets, the Socket, that is created when accepting an incoming connection, is closed at the end. Because of this, it is NOT possible to send a response back over the same connection.

Since:
4_14
Version:
$Revision: 1.8 $ $Date: 2009/03/05 15:56:19 $
Author:
Birgit Arkesteijn
See Also: