-
Notifications
You must be signed in to change notification settings - Fork 57
/
AsyncRequestResult.cs
58 lines (57 loc) · 1.43 KB
/
AsyncRequestResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.Collections.Generic;
using System.Text;
namespace SnmpSharpNet
{
/// <summary>
/// Result codes sent by UdpTarget class to the SnmpAsyncCallback delegate.
/// </summary>
public enum AsyncRequestResult
{
/// <summary>
/// No error. Data was received from the socket.
/// </summary>
NoError = 0,
/// <summary>
/// Request is in progress. A new request can not be initiated until previous request completes.
/// </summary>
RequestInProgress,
/// <summary>
/// Request has timed out. Maximum number of retries has been reached without receiving a reply
/// from the peer request was sent to
/// </summary>
Timeout,
/// <summary>
/// An error was encountered when attempting to send data to the peer. Request failed.
/// </summary>
SocketSendError,
/// <summary>
/// An error was encountered when attempting to receive data from the peer. Request failed.
/// </summary>
SocketReceiveError,
/// <summary>
/// Request has been terminated by the user.
/// </summary>
Terminated,
/// <summary>
/// No data was received from the peer
/// </summary>
NoDataReceived,
/// <summary>
/// Authentication error
/// </summary>
AuthenticationError,
/// <summary>
/// Privacy error
/// </summary>
PrivacyError,
/// <summary>
/// Error encoding SNMP packet
/// </summary>
EncodeError,
/// <summary>
/// Error decoding SNMP packet
/// </summary>
DecodeError
}
}