move FrameworkName from corlib to System
[mcs.git] / class / System / System.Net.Sockets / SocketError.cs
blob1ca399122a4b626cc6b034b7e7976fd5547a2efd
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 //
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.
31 namespace System.Net.Sockets
33 #if NET_2_0
34 public
35 #else
36 internal
37 #endif
38 enum SocketError
40 AccessDenied = 10013,
41 AddressAlreadyInUse = 10048,
42 AddressFamilyNotSupported = 10047,
43 AddressNotAvailable = 10049,
44 AlreadyInProgress = 10037,
45 ConnectionAborted = 10053,
46 ConnectionRefused = 10061,
47 ConnectionReset = 10054,
48 DestinationAddressRequired = 10039,
49 Disconnecting = 10101,
50 Fault = 10014,
51 HostDown = 10064,
52 HostNotFound = 11001,
53 HostUnreachable = 10065,
54 InProgress = 10036,
55 Interrupted = 10004,
56 InvalidArgument = 10022,
57 IOPending = 997,
58 IsConnected = 10056,
59 MessageSize = 10040,
60 NetworkDown = 10050,
61 NetworkReset = 10052,
62 NetworkUnreachable = 10051,
63 NoBufferSpaceAvailable = 10055,
64 NoData = 11004,
65 NoRecovery = 11003,
66 NotConnected = 10057,
67 NotInitialized = 10093,
68 NotSocket = 10038,
69 OperationAborted = 995,
70 OperationNotSupported = 10045,
71 ProcessLimit = 10067,
72 ProtocolFamilyNotSupported = 10046,
73 ProtocolNotSupported = 10043,
74 ProtocolOption = 10042,
75 ProtocolType = 10041,
76 Shutdown = 10058,
77 SocketError = -1,
78 SocketNotSupported = 10044,
79 Success = 0,
80 SystemNotReady = 10091,
81 TimedOut = 10060,
82 TooManyOpenSockets = 10024,
83 TryAgain = 11002,
84 TypeNotFound = 10109,
85 VersionNotSupported = 10092,
86 WouldBlock = 10035