Merge pull request #347 from JamesB7/master
[mono.git] / mcs / class / System / System.Net.Sockets / SocketError.cs
1 //
2 // System.Net.Sockets.SocketError.cs
3 //
4 // Author:
5 //      Robert Jordan  <robertj@gmx.net>
6 //
7 // Copyright (C) 2005 Novell, Inc. (http://www.novell.com)
8 //
9
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30
31 namespace System.Net.Sockets
32 {
33         public enum SocketError
34         {
35                 AccessDenied = 10013,
36                 AddressAlreadyInUse = 10048,
37                 AddressFamilyNotSupported = 10047,
38                 AddressNotAvailable = 10049,
39                 AlreadyInProgress = 10037,
40                 ConnectionAborted = 10053,
41                 ConnectionRefused = 10061,
42                 ConnectionReset = 10054,
43                 DestinationAddressRequired = 10039,
44                 Disconnecting = 10101,
45                 Fault = 10014,
46                 HostDown = 10064,
47                 HostNotFound = 11001,
48                 HostUnreachable = 10065,
49                 InProgress = 10036,
50                 Interrupted = 10004,
51                 InvalidArgument = 10022,
52                 IOPending = 997,
53                 IsConnected = 10056,
54                 MessageSize = 10040,
55                 NetworkDown = 10050,
56                 NetworkReset = 10052,
57                 NetworkUnreachable = 10051,
58                 NoBufferSpaceAvailable = 10055,
59                 NoData = 11004,
60                 NoRecovery = 11003,
61                 NotConnected = 10057,
62                 NotInitialized = 10093,
63                 NotSocket = 10038,
64                 OperationAborted = 995,
65                 OperationNotSupported = 10045,
66                 ProcessLimit = 10067,
67                 ProtocolFamilyNotSupported = 10046,
68                 ProtocolNotSupported = 10043,
69                 ProtocolOption = 10042,
70                 ProtocolType = 10041,
71                 Shutdown = 10058,
72                 SocketError = -1,
73                 SocketNotSupported = 10044,
74                 Success = 0,
75                 SystemNotReady = 10091,
76                 TimedOut = 10060,
77                 TooManyOpenSockets = 10024,
78                 TryAgain = 11002,
79                 TypeNotFound = 10109,
80                 VersionNotSupported = 10092,
81                 WouldBlock = 10035
82         }
83 }