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

Static Public Member Functions

static SocketError GetLastSocketError ()
 
static SocketError CreateSocket (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType, out SafeSocketHandle socket)
 
static unsafe SocketError CreateSocket (SocketInformation socketInformation, out SafeSocketHandle socket, ref AddressFamily addressFamily, ref SocketType socketType, ref ProtocolType protocolType)
 
static SocketError SetBlocking (SafeSocketHandle handle, bool shouldBlock, out bool willBlock)
 
static unsafe SocketError GetSockName (SafeSocketHandle handle, byte *buffer, int *nameLen)
 
static SocketError GetAvailable (SafeSocketHandle handle, out int available)
 
static unsafe SocketError GetPeerName (SafeSocketHandle handle, Span< byte > buffer, ref int nameLen)
 
static SocketError Bind (SafeSocketHandle handle, ProtocolType socketProtocolType, byte[] buffer, int nameLen)
 
static SocketError Listen (SafeSocketHandle handle, int backlog)
 
static SocketError Accept (SafeSocketHandle listenSocket, byte[] socketAddress, ref int socketAddressSize, out SafeSocketHandle socket)
 
static SocketError Connect (SafeSocketHandle handle, byte[] peerAddress, int peerAddressLen)
 
static unsafe SocketError Send (SafeSocketHandle handle, IList< ArraySegment< byte > > buffers, SocketFlags socketFlags, out int bytesTransferred)
 
static SocketError Send (SafeSocketHandle handle, byte[] buffer, int offset, int size, SocketFlags socketFlags, out int bytesTransferred)
 
static unsafe SocketError Send (SafeSocketHandle handle, ReadOnlySpan< byte > buffer, SocketFlags socketFlags, out int bytesTransferred)
 
static unsafe SocketError SendFile (SafeSocketHandle handle, SafeFileHandle fileHandle, ReadOnlySpan< byte > preBuffer, ReadOnlySpan< byte > postBuffer, TransmitFileOptions flags)
 
static SocketError SendTo (SafeSocketHandle handle, byte[] buffer, int offset, int size, SocketFlags socketFlags, byte[] peerAddress, int peerAddressSize, out int bytesTransferred)
 
static unsafe SocketError SendTo (SafeSocketHandle handle, ReadOnlySpan< byte > buffer, SocketFlags socketFlags, byte[] peerAddress, int peerAddressSize, out int bytesTransferred)
 
static unsafe SocketError Receive (SafeSocketHandle handle, IList< ArraySegment< byte > > buffers, SocketFlags socketFlags, out int bytesTransferred)
 
static SocketError Receive (SafeSocketHandle handle, byte[] buffer, int offset, int size, SocketFlags socketFlags, out int bytesTransferred)
 
static unsafe SocketError Receive (SafeSocketHandle handle, Span< byte > buffer, SocketFlags socketFlags, out int bytesTransferred)
 
static unsafe IPPacketInformation GetIPPacketInformation (global::Interop.Winsock.ControlData *controlBuffer)
 
static unsafe IPPacketInformation GetIPPacketInformation (global::Interop.Winsock.ControlDataIPv6 *controlBuffer)
 
static SocketError ReceiveMessageFrom (Socket socket, SafeSocketHandle handle, byte[] buffer, int offset, int size, ref SocketFlags socketFlags, System.Net.Internals.SocketAddress socketAddress, out System.Net.Internals.SocketAddress receiveAddress, out IPPacketInformation ipPacketInformation, out int bytesTransferred)
 
static unsafe SocketError ReceiveMessageFrom (Socket socket, SafeSocketHandle handle, Span< byte > buffer, ref SocketFlags socketFlags, System.Net.Internals.SocketAddress socketAddress, out System.Net.Internals.SocketAddress receiveAddress, out IPPacketInformation ipPacketInformation, out int bytesTransferred)
 
static SocketError ReceiveFrom (SafeSocketHandle handle, byte[] buffer, int offset, int size, SocketFlags socketFlags, byte[] socketAddress, ref int addressLength, out int bytesTransferred)
 
static unsafe SocketError ReceiveFrom (SafeSocketHandle handle, Span< byte > buffer, SocketFlags socketFlags, byte[] socketAddress, ref int addressLength, out int bytesTransferred)
 
static SocketError WindowsIoctl (SafeSocketHandle handle, int ioControlCode, byte[] optionInValue, byte[] optionOutValue, out int optionLength)
 
static SocketError SetSockOpt (SafeSocketHandle handle, SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue)
 
static unsafe SocketError SetSockOpt (SafeSocketHandle handle, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue)
 
static unsafe SocketError SetRawSockOpt (SafeSocketHandle handle, int optionLevel, int optionName, ReadOnlySpan< byte > optionValue)
 
static void SetReceivingDualModeIPv4PacketInformation (Socket socket)
 
static SocketError SetMulticastOption (SafeSocketHandle handle, SocketOptionName optionName, MulticastOption optionValue)
 
static SocketError SetIPv6MulticastOption (SafeSocketHandle handle, SocketOptionName optionName, IPv6MulticastOption optionValue)
 
static SocketError SetLingerOption (SafeSocketHandle handle, LingerOption optionValue)
 
static void SetIPProtectionLevel (Socket socket, SocketOptionLevel optionLevel, int protectionLevel)
 
static unsafe SocketError GetSockOpt (SafeSocketHandle handle, SocketOptionLevel optionLevel, SocketOptionName optionName, out int optionValue)
 
static unsafe SocketError GetSockOpt (SafeSocketHandle handle, SocketOptionLevel optionLevel, SocketOptionName optionName, byte[] optionValue, ref int optionLength)
 
static unsafe SocketError GetRawSockOpt (SafeSocketHandle handle, int optionLevel, int optionName, Span< byte > optionValue, ref int optionLength)
 
static SocketError GetMulticastOption (SafeSocketHandle handle, SocketOptionName optionName, out MulticastOption optionValue)
 
static SocketError GetIPv6MulticastOption (SafeSocketHandle handle, SocketOptionName optionName, out IPv6MulticastOption optionValue)
 
static SocketError GetLingerOption (SafeSocketHandle handle, out LingerOption optionValue)
 
static unsafe SocketError Poll (SafeSocketHandle handle, int microseconds, SelectMode mode, out bool status)
 
static unsafe SocketError Select (IList checkRead, IList checkWrite, IList checkError, int microseconds)
 
static SocketError Shutdown (SafeSocketHandle handle, bool isConnected, bool isDisconnected, SocketShutdown how)
 
static void CheckDualModeReceiveSupport (Socket socket)
 

Static Public Attributes

static readonly int MaximumAddressSize = UnixDomainSocketEndPoint.MaxAddressSize
 

Static Package Functions

static SocketError Disconnect (Socket socket, SafeSocketHandle handle, bool reuseSocket)
 
static unsafe SocketError DuplicateSocket (SafeSocketHandle handle, int targetProcessId, out SocketInformation socketInformation)
 

Static Private Member Functions

static void MicrosecondsToTimeValue (long microseconds, ref global::Interop.Winsock.TimeValue socketTime)
 
static unsafe bool TransmitFileHelper (SafeHandle socket, SafeHandle fileHandle, NativeOverlapped *overlapped, IntPtr pinnedPreBuffer, int preBufferLength, IntPtr pinnedPostBuffer, int postBufferLength, TransmitFileOptions flags)
 

Detailed Description

Definition at line 12 of file SocketPal.cs.


The documentation for this class was generated from the following file: