Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.Sockets Namespace Reference

Classes

class  CompletionPortHelper
 
class  DynamicWinsockMethods
 
class  IOControlKeepAlive
 
class  IPEndPointExtensions
 
struct  IPPacketInformation
 
class  IPv6MulticastOption
 
class  LingerOption
 
class  MulticastOption
 
class  NetworkStream
 
class  SafeSocketHandle
 
class  SendPacketsElement
 
class  Socket
 
class  SocketAsyncEventArgs
 
class  SocketException
 
struct  SocketInformation
 
class  SocketPal
 
struct  SocketReceiveFromResult
 
struct  SocketReceiveMessageFromResult
 
class  SocketsTelemetry
 
class  SocketTaskExtensions
 
class  TcpClient
 
class  TcpListener
 
class  UdpClient
 
struct  UdpReceiveResult
 
class  UnixDomainSocketEndPoint
 
struct  WSABuffer
 

Enumerations

enum  AddressInfoHints { AI_PASSIVE = 1 , AI_CANONNAME = 2 , AI_NUMERICHOST = 4 , AI_FQDN = 0x20000 }
 
enum  AddressFamily {
  Unknown = -1 , Unspecified = 0 , Unix = 1 , InterNetwork = 2 ,
  ImpLink = 3 , Pup = 4 , Chaos = 5 , NS = 6 ,
  Ipx = 6 , Iso = 7 , Osi = 7 , Ecma = 8 ,
  DataKit = 9 , Ccitt = 10 , Sna = 11 , DecNet = 12 ,
  DataLink = 13 , Lat = 14 , HyperChannel = 15 , AppleTalk = 16 ,
  NetBios = 17 , VoiceView = 18 , FireFox = 19 , Banyan = 21 ,
  Atm = 22 , InterNetworkV6 = 23 , Cluster = 24 , Ieee12844 = 25 ,
  Irda = 26 , NetworkDesigners = 28 , Max = 29 , Packet = 65536 ,
  ControllerAreaNetwork = 65537
}
 
enum  SocketError {
  Success = 0 , SocketError = -1 , Interrupted = 10004 , AccessDenied = 10013 ,
  Fault = 10014 , InvalidArgument = 10022 , TooManyOpenSockets = 10024 , WouldBlock = 10035 ,
  InProgress = 10036 , AlreadyInProgress = 10037 , NotSocket = 10038 , DestinationAddressRequired = 10039 ,
  MessageSize = 10040 , ProtocolType = 10041 , ProtocolOption = 10042 , ProtocolNotSupported = 10043 ,
  SocketNotSupported = 10044 , OperationNotSupported = 10045 , ProtocolFamilyNotSupported = 10046 , AddressFamilyNotSupported = 10047 ,
  AddressAlreadyInUse = 10048 , AddressNotAvailable = 10049 , NetworkDown = 10050 , NetworkUnreachable = 10051 ,
  NetworkReset = 10052 , ConnectionAborted = 10053 , ConnectionReset = 10054 , NoBufferSpaceAvailable = 10055 ,
  IsConnected = 10056 , NotConnected = 10057 , Shutdown = 10058 , TimedOut = 10060 ,
  ConnectionRefused = 10061 , HostDown = 10064 , HostUnreachable = 10065 , ProcessLimit = 10067 ,
  SystemNotReady = 10091 , VersionNotSupported = 10092 , NotInitialized = 10093 , Disconnecting = 10101 ,
  TypeNotFound = 10109 , HostNotFound = 11001 , TryAgain = 11002 , NoRecovery = 11003 ,
  NoData = 11004 , IOPending = 997 , OperationAborted = 995
}
 
enum  IOControlCode : long {
  AsyncIO = 2147772029L , NonBlockingIO = 2147772030L , DataToRead = 1074030207L , OobDataRead = 1074033415L ,
  AssociateHandle = 2281701377L , EnableCircularQueuing = 671088642L , Flush = 671088644L , GetBroadcastAddress = 1207959557L ,
  GetExtensionFunctionPointer = 3355443206L , GetQos = 3355443207L , GetGroupQos = 3355443208L , MultipointLoopback = 2281701385L ,
  MulticastScope = 2281701386L , SetQos = 2281701387L , SetGroupQos = 2281701388L , TranslateHandle = 3355443213L ,
  RoutingInterfaceQuery = 3355443220L , RoutingInterfaceChange = 2281701397L , AddressListQuery = 1207959574L , AddressListChange = 671088663L ,
  QueryTargetPnpHandle = 1207959576L , NamespaceChange = 2281701401L , AddressListSort = 3355443225L , ReceiveAll = 2550136833L ,
  ReceiveAllMulticast = 2550136834L , ReceiveAllIgmpMulticast = 2550136835L , KeepAliveValues = 2550136836L , AbsorbRouterAlert = 2550136837L ,
  UnicastInterface = 2550136838L , LimitBroadcasts = 2550136839L , BindToInterface = 2550136840L , MulticastInterface = 2550136841L ,
  AddMulticastGroupOnInterface = 2550136842L , DeleteMulticastGroupFromInterface = 2550136843L
}
 
enum  IPProtectionLevel { Unspecified = -1 , Unrestricted = 10 , EdgeRestricted = 20 , Restricted = 30 }
 
enum  ProtocolFamily {
  Unknown = -1 , Unspecified = 0 , Unix = 1 , InterNetwork = 2 ,
  ImpLink = 3 , Pup = 4 , Chaos = 5 , NS = 6 ,
  Ipx = 6 , Iso = 7 , Osi = 7 , Ecma = 8 ,
  DataKit = 9 , Ccitt = 10 , Sna = 11 , DecNet = 12 ,
  DataLink = 13 , Lat = 14 , HyperChannel = 15 , AppleTalk = 16 ,
  NetBios = 17 , VoiceView = 18 , FireFox = 19 , Banyan = 21 ,
  Atm = 22 , InterNetworkV6 = 23 , Cluster = 24 , Ieee12844 = 25 ,
  Irda = 26 , NetworkDesigners = 28 , Max = 29 , Packet = 65536 ,
  ControllerAreaNetwork = 65537
}
 
enum  ProtocolType {
  IP = 0 , IPv6HopByHopOptions = 0 , Icmp = 1 , Igmp = 2 ,
  Ggp = 3 , IPv4 = 4 , Tcp = 6 , Pup = 12 ,
  Udp = 17 , Idp = 22 , IPv6 = 41 , IPv6RoutingHeader = 43 ,
  IPv6FragmentHeader = 44 , IPSecEncapsulatingSecurityPayload = 50 , IPSecAuthenticationHeader = 51 , IcmpV6 = 58 ,
  IPv6NoNextHeader = 59 , IPv6DestinationOptions = 60 , ND = 77 , Raw = 255 ,
  Unspecified = 0 , Ipx = 1000 , Spx = 1256 , SpxII = 1257 ,
  Unknown = -1
}
 
enum  SelectMode { SelectRead , SelectWrite , SelectError }
 
enum  SocketAsyncOperation {
  None , Accept , Connect , Disconnect ,
  Receive , ReceiveFrom , ReceiveMessageFrom , Send ,
  SendPackets , SendTo
}
 
enum  SocketFlags {
  None = 0 , OutOfBand = 1 , Peek = 2 , DontRoute = 4 ,
  Truncated = 0x100 , ControlDataTruncated = 0x200 , Broadcast = 0x400 , Multicast = 0x800 ,
  Partial = 0x8000
}
 
enum  SocketInformationOptions { NonBlocking = 1 , Connected = 2 , Listening = 4 , UseOnlyOverlappedIO = 8 }
 
enum  SocketOptionLevel {
  Socket = 65535 , IP = 0 , IPv6 = 41 , Tcp = 6 ,
  Udp = 17
}
 
enum  SocketOptionName {
  Debug = 1 , AcceptConnection = 2 , ReuseAddress = 4 , KeepAlive = 8 ,
  DontRoute = 16 , Broadcast = 32 , UseLoopback = 64 , Linger = 128 ,
  OutOfBandInline = 256 , DontLinger = -129 , ExclusiveAddressUse = -5 , SendBuffer = 4097 ,
  ReceiveBuffer = 4098 , SendLowWater = 4099 , ReceiveLowWater = 4100 , SendTimeout = 4101 ,
  ReceiveTimeout = 4102 , Error = 4103 , Type = 4104 , ReuseUnicastPort = 12295 ,
  MaxConnections = int.MaxValue , IPOptions = 1 , HeaderIncluded = 2 , TypeOfService = 3 ,
  IpTimeToLive = 4 , MulticastInterface = 9 , MulticastTimeToLive = 10 , MulticastLoopback = 11 ,
  AddMembership = 12 , DropMembership = 13 , DontFragment = 14 , AddSourceMembership = 15 ,
  DropSourceMembership = 16 , BlockSource = 17 , UnblockSource = 18 , PacketInformation = 19 ,
  HopLimit = 21 , IPProtectionLevel = 23 , IPv6Only = 27 , NoDelay = 1 ,
  BsdUrgent = 2 , Expedited = 2 , TcpKeepAliveRetryCount = 16 , TcpKeepAliveTime = 3 ,
  TcpKeepAliveInterval = 17 , NoChecksum = 1 , ChecksumCoverage = 20 , UpdateAcceptContext = 28683 ,
  UpdateConnectContext = 28688
}
 
enum  SocketShutdown { Receive , Send , Both }
 
enum  SocketType {
  Stream = 1 , Dgram = 2 , Raw = 3 , Rdm = 4 ,
  Seqpacket = 5 , Unknown = -1
}
 
enum  TransmitFileOptions {
  UseDefaultWorkerThread = 0 , Disconnect = 1 , ReuseSocket = 2 , WriteBehind = 4 ,
  UseSystemThread = 0x10 , UseKernelApc = 0x20
}
 

Functions

unsafe delegate bool AcceptExDelegate (SafeSocketHandle listenSocketHandle, SafeSocketHandle acceptSocketHandle, IntPtr buffer, int len, int localAddressLength, int remoteAddressLength, out int bytesReceived, NativeOverlapped *overlapped)
 
unsafe delegate bool ConnectExDelegate (SafeSocketHandle socketHandle, IntPtr socketAddress, int socketAddressSize, IntPtr buffer, int dataLength, out int bytesSent, NativeOverlapped *overlapped)
 
unsafe delegate bool DisconnectExDelegate (SafeSocketHandle socketHandle, NativeOverlapped *overlapped, int flags, int reserved)
 
delegate void GetAcceptExSockaddrsDelegate (IntPtr buffer, int receiveDataLength, int localAddressLength, int remoteAddressLength, out IntPtr localSocketAddress, out int localSocketAddressLength, out IntPtr remoteSocketAddress, out int remoteSocketAddressLength)
 
unsafe delegate bool TransmitPacketsDelegate (SafeSocketHandle socketHandle, IntPtr packetArray, int elementCount, int sendSize, NativeOverlapped *overlapped, TransmitFileOptions flags)
 
unsafe delegate SocketError WSARecvMsgDelegate (SafeSocketHandle socketHandle, IntPtr msg, out int bytesTransferred, NativeOverlapped *overlapped, IntPtr completionRoutine)