System::Net::Sockets Namespace Reference

Classes

class  Details_SocketException
 
class  IPPacketInformation
 
class  LingerOption
 
class  NetworkStream
 
class  Socket
 The Socket class implements the Berkeley sockets interface. More...
 
class  TcpClient
 
class  TcpListener
 
class  UdpClient
 

Typedefs

using SocketException = System::ExceptionWrapper< Details_SocketException >
 

Enumerations

enum  SocketType {
  SocketType::Stream = 1, SocketType::Dgram = 2, SocketType::Raw = 3, SocketType::Rdm = 4,
  SocketType::Seqpacket = 5, SocketType::Unknown = static_cast<int32_t>(-1)
}
 Enumerates the socket types. More...
 
enum  AddressFamily {
  AddressFamily::Unknown = -1, AddressFamily::Unspecified = 0, AddressFamily::Unix = 1, AddressFamily::InterNetwork = 2,
  AddressFamily::ImpLink = 3, AddressFamily::Pup = 4, AddressFamily::Chaos = 5, AddressFamily::NS = 6,
  AddressFamily::Ipx = NS, AddressFamily::Iso = 7, AddressFamily::Osi = Iso, AddressFamily::Ecma = 8,
  AddressFamily::DataKit = 9, AddressFamily::Ccitt = 10, AddressFamily::Sna = 11, AddressFamily::DecNet = 12,
  AddressFamily::DataLink = 13, AddressFamily::Lat = 14, AddressFamily::HyperChannel = 15, AddressFamily::AppleTalk = 16,
  AddressFamily::NetBios = 17, AddressFamily::VoiceView = 18, AddressFamily::FireFox = 19, AddressFamily::Banyan = 21,
  AddressFamily::Atm = 22, AddressFamily::InterNetworkV6 = 23, AddressFamily::Cluster = 24, AddressFamily::Ieee12844 = 25,
  AddressFamily::Irda = 26, AddressFamily::NetworkDesigners = 28, AddressFamily::Max = 29
}
 Enumerates the address families. More...
 
enum  IOControlCode : int64_t {
  IOControlCode::AsyncIO = 0x8004667D, IOControlCode::NonBlockingIO = 0x8004667E, IOControlCode::DataToRead = 0x4004667F, IOControlCode::OobDataRead = 0x40047307,
  IOControlCode::AssociateHandle = 0x88000001, IOControlCode::EnableCircularQueuing = 0x28000002, IOControlCode::Flush = 0x28000004, IOControlCode::GetBroadcastAddress = 0x48000005,
  IOControlCode::GetExtensionFunctionPointer = 0xC8000006, IOControlCode::GetQos = 0xC8000007, IOControlCode::GetGroupQos = 0xC8000008, IOControlCode::MultipointLoopback = 0x88000009,
  IOControlCode::MulticastScope = 0x8800000A, IOControlCode::SetQos = 0x8800000B, IOControlCode::SetGroupQos = 0x8800000C, IOControlCode::TranslateHandle = 0xC800000D,
  IOControlCode::RoutingInterfaceQuery = 0xC8000014, IOControlCode::RoutingInterfaceChange = 0x88000015, IOControlCode::AddressListQuery = 0x48000016, IOControlCode::AddressListChange = 0x28000017,
  IOControlCode::QueryTargetPnpHandle = 0x48000018, IOControlCode::NamespaceChange = 0x88000019, IOControlCode::AddressListSort = 0xC8000019, IOControlCode::ReceiveAll = 0x98000001,
  IOControlCode::ReceiveAllMulticast = 0x98000002, IOControlCode::ReceiveAllIgmpMulticast = 0x98000003, IOControlCode::KeepAliveValues = 0x98000004, IOControlCode::AbsorbRouterAlert = 0x98000005,
  IOControlCode::UnicastInterface = 0x98000006, IOControlCode::LimitBroadcasts = 0x98000007, IOControlCode::BindToInterface = 0x98000008, IOControlCode::MulticastInterface = 0x98000009,
  IOControlCode::AddMulticastGroupOnInterface = 0x9800000A, IOControlCode::DeleteMulticastGroupFromInterface = 0x9800000B
}
 Enumerates the IO control codes. More...
 
enum  ProtocolFamily {
  ProtocolFamily::Unknown = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Unknown), ProtocolFamily::Unspecified = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Unspecified), ProtocolFamily::Unix = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Unix), ProtocolFamily::InterNetwork = static_cast<int32_t>(System::Net::Sockets::AddressFamily::InterNetwork),
  ProtocolFamily::ImpLink = static_cast<int32_t>(System::Net::Sockets::AddressFamily::ImpLink), ProtocolFamily::Pup = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Pup), ProtocolFamily::Chaos = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Chaos), ProtocolFamily::NS = static_cast<int32_t>(System::Net::Sockets::AddressFamily::NS),
  ProtocolFamily::Ipx = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Ipx), ProtocolFamily::Iso = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Iso), ProtocolFamily::Osi = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Osi), ProtocolFamily::Ecma = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Ecma),
  ProtocolFamily::DataKit = static_cast<int32_t>(System::Net::Sockets::AddressFamily::DataKit), ProtocolFamily::Ccitt = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Ccitt), ProtocolFamily::Sna = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Sna), ProtocolFamily::DecNet = static_cast<int32_t>(System::Net::Sockets::AddressFamily::DecNet),
  ProtocolFamily::DataLink = static_cast<int32_t>(System::Net::Sockets::AddressFamily::DataLink), ProtocolFamily::Lat = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Lat), ProtocolFamily::HyperChannel = static_cast<int32_t>(System::Net::Sockets::AddressFamily::HyperChannel), ProtocolFamily::AppleTalk = static_cast<int32_t>(System::Net::Sockets::AddressFamily::AppleTalk),
  ProtocolFamily::NetBios = static_cast<int32_t>(System::Net::Sockets::AddressFamily::NetBios), ProtocolFamily::VoiceView = static_cast<int32_t>(System::Net::Sockets::AddressFamily::VoiceView), ProtocolFamily::FireFox = static_cast<int32_t>(System::Net::Sockets::AddressFamily::FireFox), ProtocolFamily::Banyan = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Banyan),
  ProtocolFamily::Atm = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Atm), ProtocolFamily::InterNetworkV6 = static_cast<int32_t>(System::Net::Sockets::AddressFamily::InterNetworkV6), ProtocolFamily::Cluster = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Cluster), ProtocolFamily::Ieee12844 = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Ieee12844),
  ProtocolFamily::Irda = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Irda), ProtocolFamily::NetworkDesigners = static_cast<int32_t>(System::Net::Sockets::AddressFamily::NetworkDesigners), ProtocolFamily::Max = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Max)
}
 Enumerates the protocol families. More...
 
enum  ProtocolType {
  ProtocolType::IP = 0, ProtocolType::IPv6HopByHopOptions = 0, ProtocolType::Icmp = 1, ProtocolType::Igmp = 2,
  ProtocolType::Ggp = 3, ProtocolType::IPv4 = 4, ProtocolType::Tcp = 6, ProtocolType::Pup = 12,
  ProtocolType::Udp = 17, ProtocolType::Idp = 22, ProtocolType::IPv6 = 41, ProtocolType::IPv6RoutingHeader = 43,
  ProtocolType::IPv6FragmentHeader = 44, ProtocolType::IPSecEncapsulatingSecurityPayload = 50, ProtocolType::IPSecAuthenticationHeader = 51, ProtocolType::IcmpV6 = 58,
  ProtocolType::IPv6NoNextHeader = 59, ProtocolType::IPv6DestinationOptions = 60, ProtocolType::ND = 77, ProtocolType::Raw = 255,
  ProtocolType::Unspecified = 0, ProtocolType::Ipx = 1000, ProtocolType::Spx = 1256, ProtocolType::SpxII = 1257,
  ProtocolType::Unknown = static_cast<int32_t>(-1)
}
 Enumerates the protocol types. More...
 
enum  SelectMode { SelectMode::SelectRead = 0, SelectMode::SelectWrite = 1, SelectMode::SelectError = 2 }
 Specifies the mode for polling the status of the socket. More...
 
enum  SocketError {
  SocketError::Success = 0, SocketError::SocketError = -1, SocketError::Interrupted = 10004, SocketError::AccessDenied = 10013,
  SocketError::Fault = 10014, SocketError::InvalidArgument = 10022, SocketError::TooManyOpenSockets = 10024, SocketError::WouldBlock = 10035,
  SocketError::InProgress = 10036, SocketError::AlreadyInProgress = 10037, SocketError::NotSocket = 10038, SocketError::DestinationAddressRequired = 10039,
  SocketError::MessageSize = 10040, SocketError::ProtocolType = 10041, SocketError::ProtocolOption = 10042, SocketError::ProtocolNotSupported = 10043,
  SocketError::SocketNotSupported = 10044, SocketError::OperationNotSupported = 10045, SocketError::ProtocolFamilyNotSupported = 10046, SocketError::AddressFamilyNotSupported = 10047,
  SocketError::AddressAlreadyInUse = 10048, SocketError::AddressNotAvailable = 10049, SocketError::NetworkDown = 10050, SocketError::NetworkUnreachable = 10051,
  SocketError::NetworkReset = 10052, SocketError::ConnectionAborted = 10053, SocketError::ConnectionReset = 10054, SocketError::NoBufferSpaceAvailable = 10055,
  SocketError::IsConnected = 10056, SocketError::NotConnected = 10057, SocketError::Shutdown = 10058, SocketError::TimedOut = 10060,
  SocketError::ConnectionRefused = 10061, SocketError::HostDown = 10064, SocketError::HostUnreachable = 10065, SocketError::ProcessLimit = 10067,
  SocketError::SystemNotReady = 10091, SocketError::VersionNotSupported = 10092, SocketError::NotInitialized = 10093, SocketError::Disconnecting = 10101,
  SocketError::TypeNotFound = 10109, SocketError::HostNotFound = 11001, SocketError::TryAgain = 11002, SocketError::NoRecovery = 11003,
  SocketError::NoData = 11004
}
 Enumerates the socket error types. More...
 
enum  SocketFlags {
  SocketFlags::None = 0x0000, SocketFlags::OutOfBand = 0x0001, SocketFlags::Peek = 0x0002, SocketFlags::DontRoute = 0x0004,
  SocketFlags::Truncated = 0x0100, SocketFlags::ControlDataTruncated = 0x0200, SocketFlags::Broadcast = 0x0400, SocketFlags::Multicast = 0x0800,
  SocketFlags::Partial = 0x8000
}
 Provides constant values for the socket messages. More...
 
enum  SocketOptionLevel {
  SocketOptionLevel::Socket = 0xffff, SocketOptionLevel::IP = static_cast<int32_t>(System::Net::Sockets::ProtocolType::IP), SocketOptionLevel::IPv6 = static_cast<int32_t>(System::Net::Sockets::ProtocolType::IPv6), SocketOptionLevel::Tcp = static_cast<int32_t>(System::Net::Sockets::ProtocolType::Tcp),
  SocketOptionLevel::Udp = static_cast<int32_t>(System::Net::Sockets::ProtocolType::Udp)
}
 Defines socket option levels for the 'Socket' class. More...
 
enum  SocketOptionName {
  SocketOptionName::Debug = 0x0001, SocketOptionName::AcceptConnection = 0x0002, SocketOptionName::ReuseAddress = 0x0004, SocketOptionName::KeepAlive = 0x0008,
  SocketOptionName::DontRoute = 0x0010, SocketOptionName::Broadcast = 0x0020, SocketOptionName::UseLoopback = 0x0040, SocketOptionName::Linger = 0x0080,
  SocketOptionName::OutOfBandInline = 0x0100, SocketOptionName::DontLinger = static_cast<int32_t>(~Linger), SocketOptionName::ExclusiveAddressUse = static_cast<int32_t>(~ReuseAddress), SocketOptionName::SendBuffer = 0x1001,
  SocketOptionName::ReceiveBuffer = 0x1002, SocketOptionName::SendLowWater = 0x1003, SocketOptionName::ReceiveLowWater = 0x1004, SocketOptionName::SendTimeout = 0x1005,
  SocketOptionName::ReceiveTimeout = 0x1006, SocketOptionName::Error = 0x1007, SocketOptionName::Type = 0x1008, SocketOptionName::ReuseUnicastPort = 0x3007,
  SocketOptionName::MaxConnections = 0x7fffffff, SocketOptionName::IPOptions = 1, SocketOptionName::HeaderIncluded = 2, SocketOptionName::TypeOfService = 3,
  SocketOptionName::IpTimeToLive = 4, SocketOptionName::MulticastInterface = 9, SocketOptionName::MulticastTimeToLive = 10, SocketOptionName::MulticastLoopback = 11,
  SocketOptionName::AddMembership = 12, SocketOptionName::DropMembership = 13, SocketOptionName::DontFragment = 14, SocketOptionName::AddSourceMembership = 15,
  SocketOptionName::DropSourceMembership = 16, SocketOptionName::BlockSource = 17, SocketOptionName::UnblockSource = 18, SocketOptionName::PacketInformation = 19,
  SocketOptionName::HopLimit = 21, SocketOptionName::IPProtectionLevel = 23, SocketOptionName::IPv6Only = 27, SocketOptionName::NoDelay = 1,
  SocketOptionName::BsdUrgent = 2, SocketOptionName::Expedited = 2, SocketOptionName::NoChecksum = 1, SocketOptionName::ChecksumCoverage = 20,
  SocketOptionName::UpdateAcceptContext = 0x700B, SocketOptionName::UpdateConnectContext = 0x7010
}
 Defines socket option names for the Socket class. More...
 
enum  SocketShutdown { SocketShutdown::Receive = 0x00, SocketShutdown::Send = 0x01, SocketShutdown::Both = 0x02 }
 Defines constants used by the Socket.Shutdown method. More...
 

Functions

ASPOSECPP_SHARED_API bool operator== (IPPacketInformation left, IPPacketInformation right)
 
ASPOSECPP_SHARED_API bool operator!= (IPPacketInformation left, IPPacketInformation right)
 

Typedef Documentation

◆ SocketException

Enumeration Type Documentation

◆ AddressFamily

Enumerates the address families.

Enumerator
Unknown 

The unknown address family.

Unspecified 

The unspecified address family.

Unix 

The Unix local to host the address family.

InterNetwork 

The address for IPv4.

ImpLink 

The ARPANET IMP address.

Pup 

The address for the PUP protocols.

Chaos 

The address for the MIT CHAOS protocols.

NS 

The address for the Xerox NS protocols.

Ipx 

The IPX or SPX address.

Iso 

The address for the ISO protocols.

Osi 

The address for the OSI protocols.

Ecma 

The European Computer Manufacturers Association (ECMA) address.

DataKit 

The address for the Datakit protocols.

Ccitt 

Addresses for the CCITT protocols, e.g. X.25.

Sna 

The IBM SNA address.

DecNet 

The DECnet address.

DataLink 

The direct data-link interface address.

Lat 

The LAT address.

HyperChannel 

The NSC Hyperchannel address.

AppleTalk 

The AppleTalk address.

NetBios 

The NetBios address.

VoiceView 

The VoiceView address.

FireFox 

The FireFox address.

Banyan 

The Banyan address.

Atm 

The native ATM services address.

InterNetworkV6 

The address for IPv6.

Cluster 

The address for the Microsoft cluster products.

Ieee12844 

The IEEE 1284.4 workgroup address.

Irda 

The IrDA address.

NetworkDesigners 

The address for the Network Designers OSI gateway-enabled protocols.

Max 

The MAX address.

◆ IOControlCode

enum System::Net::Sockets::IOControlCode : int64_t
strong

Enumerates the IO control codes.

Enumerator
AsyncIO 

Enable or disable the asynchronous I/O mode of the socket.

NonBlockingIO 

Mark the socket as nonblocking.

DataToRead 

Return the number of bytes available for reading.

OobDataRead 

Return information about out-of-band data waiting to be received.

AssociateHandle 

Associate this socket with the specified handle of a companion interface.

EnableCircularQueuing 

Replace the oldest queued datagram with an incoming one when the incoming message queues are full.

Flush 

Discards current contents of the sending queue associated with this socket.

GetBroadcastAddress 

Return a SOCKADDR structure that contains the broadcast address for the address family of the current socket.

GetExtensionFunctionPointer 

Retrieve a pointer to the specified extension function supported by the associated service provider.

GetQos 

Retrieve the QOS structure associated with the socket.

GetGroupQos 

Return the QOS attributes for the socket group.

MultipointLoopback 

Control whether data sent by an application on the local computer (not necessarily by the same socket) in a multicast session will be received by a socket joined to the multicast destination group on the loopback interface.

MulticastScope 

Control the number of times a multicast packet can be forwarded by a router, also known as TTL, or hop count.

SetQos 

Set the QOS attributes for the socket.

SetGroupQos 

Set the QOS attributes for the socket group.

TranslateHandle 

Return a handle for the socket that is valid in the context of a companion interface.

RoutingInterfaceQuery 

Return the interface addresses that can be used to connect to the specified remote address.

RoutingInterfaceChange 

Enable receiving a notification when the local interface used to access a remote endpoint changes.

AddressListQuery 

Return the list of the local interfaces that the socket can bind to.

AddressListChange 

Enable receiving a notification when the list of the local interfaces for the socket's protocol family changes.

QueryTargetPnpHandle 

Retrieve the underlying provider's SOCKET handle.

NamespaceChange 

Control whether the socket receives notification when a namespace query becomes invalid.

AddressListSort 

Sort a list of IPv6 and IPv4 destination addresses to determine the best available address for making a connection.

ReceiveAll 

Enable receiving all IPv4 packets on the network.

ReceiveAllMulticast 

Enable receiving all multicast IPv4 packets on the network.

ReceiveAllIgmpMulticast 

Enable receiving all IGMP packets on the network.

KeepAliveValues 

Control sending TCP keep-alive packets and the interval at which they are sent.

AbsorbRouterAlert 

This value is equal to the Winsock 2 'SIO_ABSORB_RTRALERT' constant.

UnicastInterface 

Set the interface used for the outgoing unicast packets.

LimitBroadcasts 

This value is equal to the Winsock 2 'SIO_LIMIT_BROADCASTS' constant.

BindToInterface 

Bind the socket to a specified interface index.

MulticastInterface 

Set the interface used for the outgoing multicast packets.

AddMulticastGroupOnInterface 

Join a multicast group using an interface identified by its index.

DeleteMulticastGroupFromInterface 

Remove the socket from a multicast group.

◆ ProtocolFamily

Enumerates the protocol families.

Enumerator
Unknown 

An unknown protocol.

Unspecified 

An unspecified protocol.

Unix 

The Unix local to host protocol.

InterNetwork 

IPv4.

ImpLink 

The ARPANET IMP protocol.

Pup 

The PUP protocol.

Chaos 

The MIT CHAOS protocol.

NS 

The Xerox NS protocol.

Ipx 

The IPX or SPX protocol.

Iso 

The ISO protocol.

Osi 

The OSI protocol.

Ecma 

The European Computer Manufacturers Association (ECMA) protocol.

DataKit 

The DataKit protocol.

Ccitt 

The CCITT protocol, such as X.25.

Sna 

The IBM SNA protocol.

DecNet 

The DECNet protocol.

DataLink 

The direct data link protocol.

Lat 

The LAT protocol.

HyperChannel 

The NSC HyperChannel protocol.

AppleTalk 

The AppleTalk protocol.

NetBios 

The NetBIOS protocol.

VoiceView 

The VoiceView protocol.

FireFox 

The FireFox protocol.

Banyan 

The Banyan protocol.

Atm 

The native ATM services protocol.

InterNetworkV6 

IPv6.

Cluster 

The Microsoft Cluster products protocol.

Ieee12844 

The IEEE 1284.4 workgroup protocol.

Irda 

The IrDA protocol.

NetworkDesigners 

The Network Designers OSI gateway enabled protocol.

Max 

The MAX protocol.

◆ ProtocolType

Enumerates the protocol types.

Enumerator
IP 

The Internet Protocol.

IPv6HopByHopOptions 

The IPv6 Hop by Hop Options header.

Icmp 

The Internet Control Message Protocol.

Igmp 

The Internet Group Management Protocol.

Ggp 

The Gateway To Gateway Protocol.

IPv4 

The Internet Protocol version 4.

Tcp 

The Transmission Control Protocol.

Pup 

The PARC Universal Packet Protocol.

Udp 

The User Datagram Protocol.

Idp 

The Internet Datagram Protocol.

IPv6 

The Internet Protocol version 6.

IPv6RoutingHeader 

The IPv6 Routing header.

IPv6FragmentHeader 

The IPv6 Fragment header.

IPSecEncapsulatingSecurityPayload 

The IPv6 Encapsulating Security Payload header.

IPSecAuthenticationHeader 

The IPv6 Authentication header.

IcmpV6 

The Internet Control Message Protocol for IPv6.

IPv6NoNextHeader 

The IPv6 No next header.

IPv6DestinationOptions 

The IPv6 Destination Options header.

ND 

The Net Disk protocol.

Raw 

The Raw IP packet protocol.

Unspecified 

An unspecified protocol.

Ipx 

The Internet Packet Exchange protocol.

Spx 

The Sequenced Packet Exchange protocol.

SpxII 

The Sequenced Packet Exchange version 2 protocol.

Unknown 

An unknown protocol.

◆ SelectMode

Specifies the mode for polling the status of the socket.

Enumerator
SelectRead 

The 'read' status mode.

SelectWrite 

The 'write' status mode.

SelectError 

The 'error' status mode.

◆ SocketError

Enumerates the socket error types.

Enumerator
Success 

A socket operation completed successfully.

SocketError 

An unspecified socket error occurred.

Interrupted 

A blocking socket call is cancelled.

AccessDenied 

Access to a socket is denied.

Fault 

An invalid pointer address is detected.

InvalidArgument 

An invalid argument is provided.

TooManyOpenSockets 

There are too many open sockets in the underlying socket provider.

WouldBlock 

An operation cannot be immediately completed on a non-blocking socket.

InProgress 

A blocking operation is in progress.

AlreadyInProgress 

A non-blocking socket already has a running operation.

NotSocket 

An attempt to call a socket operation on non-socket.

DestinationAddressRequired 

A required address is omitted from a socket operation.

MessageSize 

A datagram is too long.

ProtocolType 

A protocol type is not supported by this socket.

ProtocolOption 

An unknown, invalid, or unsupported option or level is used.

ProtocolNotSupported 

A protocol is not implemented or not configured.

SocketNotSupported 

An address family doesn't support the specified socket.

OperationNotSupported 

A protocol family doesn't support an address family.

ProtocolFamilyNotSupported 

A protocol family is not implemented or not configured.

AddressFamilyNotSupported 

The specified address family is not supported.

AddressAlreadyInUse 

An address can be used only once.

AddressNotAvailable 

The selected IP address is not valid in this context.

NetworkDown 

The network is not available.

NetworkUnreachable 

No route to the remote host exists.

NetworkReset 

An application tried to set 'Keep-Alive' on a connection that has already timed out.

ConnectionAborted 

A connection is aborted.

ConnectionReset 

A connection is reset by a remote peer.

NoBufferSpaceAvailable 

No free buffer space is available for a socket operation.

IsConnected 

A socket is already connected.

NotConnected 

An application tried to send or receive data, and a socket is not connected.

Shutdown 

A request to send or receive data is forbidden because the socket has already been closed.

TimedOut 

A connection attempt timed out, or a connected host has failed to respond.

ConnectionRefused 

A remote host is actively refusing a connection.

HostDown 

An operation failed because a remote host is down.

HostUnreachable 

No network route to the specified host exists.

ProcessLimit 

Too many processes are using the underlying socket provider.

SystemNotReady 

A network subsystem is unavailable.

VersionNotSupported 

A version of the underlying socket provider is out of range.

NotInitialized 

The underlying socket provider is not initialized.

Disconnecting 

A graceful shutdown is in progress.

TypeNotFound 

The specified class is not found.

HostNotFound 

The specified host is unknown.

TryAgain 

A name of a host cannot be resolved.

NoRecovery 

An error is unrecoverable or a requested database cannot be located.

NoData 

A requested name or IP address is not found on the name server.

◆ SocketFlags

Provides constant values for the socket messages.

Enumerator
None 

There are no flags used for this call.

OutOfBand 

The out-of-band data is being processed.

Peek 

Peek at an incoming message.

DontRoute 

Send a message without using routing tables.

Truncated 

A message is too large to fit into the specified buffer. It has been truncated.

ControlDataTruncated 

The control data is greater than 64 KB and doesn't fit into the internal buffer. It has been truncated.

Broadcast 

A broadcast packet.

Multicast 

A multicast packet.

Partial 

A message sent or received partially.

◆ SocketOptionLevel

Defines socket option levels for the 'Socket' class.

Enumerator
Socket 

The specified socket options apply to all sockets.

IP 

The specified socket options apply to the IP sockets.

IPv6 

The specified socket options apply to the IPv6 sockets.

Tcp 

The specified socket options apply to the TCP sockets.

Udp 

The specified socket options apply to the UDP sockets.

◆ SocketOptionName

Defines socket option names for the Socket class.

Enumerator
Debug 

Record debugging information.

AcceptConnection 

Indicates if a socket is listening for an incoming connection.

ReuseAddress 

Indicates if a socket can be bound to the address that is already in use.

KeepAlive 

Enables the 'Keep-Alive' packets for a socket connection.

DontRoute 

Indicates if a packet is sent directly to the interface addresses.

Broadcast 

Indicates if a socket can send the broadcast messages.

UseLoopback 

Bypass hardware when possible.

Linger 

The system will block the process on the close attempt until it is able to transmit the data.

OutOfBandInline 

Receives out-of-band data in the normal data stream.

DontLinger 

Indicates if a socket will be closed without lingering.

ExclusiveAddressUse 

A socket will use the bound address exclusively.

SendBuffer 

Specifies the send buffer size.

ReceiveBuffer 

Specifies the receive buffer size.

SendLowWater 

Specifies the minimum amount of data for the send operations.

ReceiveLowWater 

Specifies the minimum amount of data for the receive operations.

SendTimeout 

Specifies the timeout for the synchronous send operations.

ReceiveTimeout 

Specifies the timeout for the synchronous receive operations.

Error 

Returns the error status and clear.

Type 

Returns a socket type.

ReuseUnicastPort 

Indicates if the system should defer the ephemeral port allocation for the outbound connections.

MaxConnections 

This option is not supported. It was used to specify the maximum queue length for listening.

IPOptions 

Specifies the IP option that must be inserted to outgoing datagrams.

HeaderIncluded 

The header is included to outgoing datagrams.

TypeOfService 

Change the IP header type of the service field.

IpTimeToLive 

The IP time to live.

MulticastInterface 

Set the interface for the outgoing multicast packets.

MulticastTimeToLive 

The IP multicast time to live.

MulticastLoopback 

The IP Multicast loopback.

AddMembership 

Add an IP group membership.

DropMembership 

Drop an IP group membership.

DontFragment 

Don't fragment the IP datagrams.

AddSourceMembership 

Join the IP group/source.

DropSourceMembership 

Drop the IP group/source.

BlockSource 

Block the IP group/source.

UnblockSource 

Unblock the IP group/source.

PacketInformation 

Receive packet information for IPv4.

HopLimit 

Delivers an integer containing the HOP count of the packet.

IPProtectionLevel 

Enables restriction of an IPv6 socket to the specified scope.

IPv6Only 

The socket is restricted to send and receive IPv6 packets only.

NoDelay 

Disables the Nagle algorithm for coalescing the send packets.

BsdUrgent 

Use the urgent data as defined in RFC-1222.

Expedited 

Use the expedited data as defined in RFC-1222.

NoChecksum 

Send the UDP datagrams with a checksum set to zero.

ChecksumCoverage 

Set or get the UDP checksum coverage.

UpdateAcceptContext 

Updates a client socket with the same properties of a listening socket.

UpdateConnectContext 

Updates a client socket with the same properties of a listening socket.

◆ SocketShutdown

Defines constants used by the Socket.Shutdown method.

Enumerator
Receive 

Disables the socket for receiving.

Send 

Disables the socket for sending.

Both 

Disables the socket for both sending and receiving.

◆ SocketType

Enumerates the socket types.

Enumerator
Stream 

The type that supports reliable, two-way, connection-based byte streams without duplication of data and without preservation of boundaries.

Dgram 

The type that supports datagrams, which are connectionless, unreliable messages of a fixed maximum length.

Raw 

The type that supports access to the underlying transport protocol.

Rdm 

The type that supports connectionless, message-oriented, reliably delivered messages, and preserves message boundaries in data.

Seqpacket 

The type that provides connection-oriented and reliable two-way transfer of ordered byte streams across a network.

Unknown 

An unknown type.

Function Documentation

◆ operator!=()

ASPOSECPP_SHARED_API bool System::Net::Sockets::operator!= ( IPPacketInformation  left,
IPPacketInformation  right 
)

◆ operator==()

ASPOSECPP_SHARED_API bool System::Net::Sockets::operator== ( IPPacketInformation  left,
IPPacketInformation  right 
)