프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_isIPv6 | bool | ||
_noSourceCheck | bool | ||
_socket | Socket |
메소드 | 설명 | |
---|---|---|
Close ( ) : void |
Close network socket
|
|
Dispose ( ) : void |
Dispose of the class.
|
|
Request ( |
Make sync request using IP/UDP with request timeouts and retries.
|
|
UdpTransport ( bool useV6 ) : System |
Constructor. Initializes and binds the Socket class
|
메소드 | 설명 | |
---|---|---|
initSocket ( bool useV6 ) : void |
Initialize class socket
|
메소드 | 설명 | |
---|---|---|
AsyncRequestTimerCallback ( object stateInfo ) : void |
Internal timer callback. Called by _asyncTimer when SNMP request timeout has expired
|
|
ReceiveBegin ( ) : void |
Begin async version of ReceiveFrom member of the socket class.
|
|
ReceiveFromCallback ( IAsyncResult ar ) : void |
Internal callback called as part of Socket.BeginReceiveFrom. Process incoming packets and notify caller of results.
|
|
RequestAsync ( |
Begin an async SNMP request
|
|
RetryAsyncRequest ( ) : void |
Internal retry function. Checks if request has reached maximum number of retries and either resends the request if not reached, or sends request timed-out notification to the caller if maximum retry count has been reached and request has failed.
|
|
SendToBegin ( ) : void |
Calls async version of the SendTo socket function.
|
|
SendToCallback ( IAsyncResult ar ) : void |
Callback member called on completion of BeginSendTo send data operation.
|
public Request ( |
||
peer | SNMP agent IP address | |
port | int | SNMP agent port number |
buffer | byte | Data to send to the agent |
bufferLength | int | Data length in the buffer |
timeout | int | Timeout in milliseconds |
retries | int | Maximum number of retries. 0 = make a single request with no retry attempts |
리턴 | byte[] |
public UdpTransport ( bool useV6 ) : System | ||
useV6 | bool | Set to true if you wish to initialize the transport for IPv6 |
리턴 | System |
protected initSocket ( bool useV6 ) : void | ||
useV6 | bool | Should socket be initialized for IPv6 (true) of IPv4 (false) |
리턴 | void |