Asposecpplib
System::Net::Sockets Namespace Reference

Classes

class  IPPacketInformation
 
class  LingerOption
 
class  NetworkStream
 
class  Socket
 
class  SocketException
 
class  TcpClient
 
class  TcpListener
 

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)
}
 
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
}
 
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
}
 
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)
}
 
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)
}
 
enum  SelectMode { SelectMode::SelectRead = 0, SelectMode::SelectWrite = 1, SelectMode::SelectError = 2 }
 
enum  SocketError : int32_t {
  SocketError::Success = 0, SocketError::SocketError = static_cast<int32_t>((-1)), SocketError::Interrupted = static_cast<int32_t>((10000 + 4)), SocketError::AccessDenied = static_cast<int32_t>((10000 + 13)),
  SocketError::Fault = static_cast<int32_t>((10000 + 14)), SocketError::InvalidArgument = static_cast<int32_t>((10000 + 22)), SocketError::TooManyOpenSockets = static_cast<int32_t>((10000 + 24)), SocketError::WouldBlock = static_cast<int32_t>((10000 + 35)),
  SocketError::InProgress = static_cast<int32_t>((10000 + 36)), SocketError::AlreadyInProgress = static_cast<int32_t>((10000 + 37)), SocketError::NotSocket = static_cast<int32_t>((10000 + 38)), SocketError::DestinationAddressRequired = static_cast<int32_t>((10000 + 39)),
  SocketError::MessageSize = static_cast<int32_t>((10000 + 40)), SocketError::ProtocolType = static_cast<int32_t>((10000 + 41)), SocketError::ProtocolOption = static_cast<int32_t>((10000 + 42)), SocketError::ProtocolNotSupported = static_cast<int32_t>((10000 + 43)),
  SocketError::SocketNotSupported = static_cast<int32_t>((10000 + 44)), SocketError::OperationNotSupported = static_cast<int32_t>((10000 + 45)), SocketError::ProtocolFamilyNotSupported = static_cast<int32_t>((10000 + 46)), SocketError::AddressFamilyNotSupported = static_cast<int32_t>((10000 + 47)),
  SocketError::AddressAlreadyInUse = static_cast<int32_t>((10000 + 48)), SocketError::AddressNotAvailable = static_cast<int32_t>((10000 + 49)), SocketError::NetworkDown = static_cast<int32_t>((10000 + 50)), SocketError::NetworkUnreachable = static_cast<int32_t>((10000 + 51)),
  SocketError::NetworkReset = static_cast<int32_t>((10000 + 52)), SocketError::ConnectionAborted = static_cast<int32_t>((10000 + 53)), SocketError::ConnectionReset = static_cast<int32_t>((10000 + 54)), SocketError::NoBufferSpaceAvailable = static_cast<int32_t>((10000 + 55)),
  SocketError::IsConnected = static_cast<int32_t>((10000 + 56)), SocketError::NotConnected = static_cast<int32_t>((10000 + 57)), SocketError::Shutdown = static_cast<int32_t>((10000 + 58)), SocketError::TimedOut = static_cast<int32_t>((10000 + 60)),
  SocketError::ConnectionRefused = static_cast<int32_t>((10000 + 61)), SocketError::HostDown = static_cast<int32_t>((10000 + 64)), SocketError::HostUnreachable = static_cast<int32_t>((10000 + 65)), SocketError::ProcessLimit = static_cast<int32_t>((10000 + 67)),
  SocketError::SystemNotReady = static_cast<int32_t>((10000 + 91)), SocketError::VersionNotSupported = static_cast<int32_t>((10000 + 92)), SocketError::NotInitialized = static_cast<int32_t>((10000 + 93)), SocketError::Disconnecting = static_cast<int32_t>((10000 + 101)),
  SocketError::TypeNotFound = static_cast<int32_t>((10000 + 109)), SocketError::HostNotFound = static_cast<int32_t>((10000 + 1001)), SocketError::TryAgain = static_cast<int32_t>((10000 + 1002)), SocketError::NoRecovery = static_cast<int32_t>((10000 + 1003)),
  SocketError::NoData = static_cast<int32_t>((10000 + 1004))
}
 
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
}
 
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)
}
 
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
}
 
enum  SocketShutdown { SocketShutdown::Receive = 0x00, SocketShutdown::Send = 0x01, SocketShutdown::Both = 0x02 }
 

Functions

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

Enumeration Type Documentation

◆ AddressFamily

Enumerator
Unknown 
Unspecified 
Unix 
InterNetwork 
ImpLink 
Pup 
Chaos 
NS 
Ipx 
Iso 
Osi 
Ecma 
DataKit 
Ccitt 
Sna 
DecNet 
DataLink 
Lat 
HyperChannel 
AppleTalk 
NetBios 
VoiceView 
FireFox 
Banyan 
Atm 
InterNetworkV6 
Cluster 
Ieee12844 
Irda 
NetworkDesigners 
Max 

◆ IOControlCode

enum System::Net::Sockets::IOControlCode : int64_t
strong
Enumerator
AsyncIO 
NonBlockingIO 
DataToRead 
OobDataRead 
AssociateHandle 
EnableCircularQueuing 
Flush 
GetBroadcastAddress 
GetExtensionFunctionPointer 
GetQos 
GetGroupQos 
MultipointLoopback 
MulticastScope 
SetQos 
SetGroupQos 
TranslateHandle 
RoutingInterfaceQuery 
RoutingInterfaceChange 
AddressListQuery 
AddressListChange 
QueryTargetPnpHandle 
NamespaceChange 
AddressListSort 
ReceiveAll 
ReceiveAllMulticast 
ReceiveAllIgmpMulticast 
KeepAliveValues 
AbsorbRouterAlert 
UnicastInterface 
LimitBroadcasts 
BindToInterface 
MulticastInterface 
AddMulticastGroupOnInterface 
DeleteMulticastGroupFromInterface 

◆ ProtocolFamily

Enumerator
Unknown 
Unspecified 
Unix 
InterNetwork 
ImpLink 
Pup 
Chaos 
NS 
Ipx 
Iso 
Osi 
Ecma 
DataKit 
Ccitt 
Sna 
DecNet 
DataLink 
Lat 
HyperChannel 
AppleTalk 
NetBios 
VoiceView 
FireFox 
Banyan 
Atm 
InterNetworkV6 
Cluster 
Ieee12844 
Irda 
NetworkDesigners 
Max 

◆ ProtocolType

Enumerator
IP 
IPv6HopByHopOptions 
Icmp 
Igmp 
Ggp 
IPv4 
Tcp 
Pup 
Udp 
Idp 
IPv6 
IPv6RoutingHeader 
IPv6FragmentHeader 
IPSecEncapsulatingSecurityPayload 
IPSecAuthenticationHeader 
IcmpV6 
IPv6NoNextHeader 
IPv6DestinationOptions 
ND 
Raw 
Unspecified 
Ipx 
Spx 
SpxII 
Unknown 

◆ SelectMode

Enumerator
SelectRead 
SelectWrite 
SelectError 

◆ SocketError

enum System::Net::Sockets::SocketError : int32_t
strong
Enumerator
Success 
SocketError 
Interrupted 
AccessDenied 
Fault 
InvalidArgument 
TooManyOpenSockets 
WouldBlock 
InProgress 
AlreadyInProgress 
NotSocket 
DestinationAddressRequired 
MessageSize 
ProtocolType 
ProtocolOption 
ProtocolNotSupported 
SocketNotSupported 
OperationNotSupported 
ProtocolFamilyNotSupported 
AddressFamilyNotSupported 
AddressAlreadyInUse 
AddressNotAvailable 
NetworkDown 
NetworkUnreachable 
NetworkReset 
ConnectionAborted 
ConnectionReset 
NoBufferSpaceAvailable 
IsConnected 
NotConnected 
Shutdown 
TimedOut 
ConnectionRefused 
HostDown 
HostUnreachable 
ProcessLimit 
SystemNotReady 
VersionNotSupported 
NotInitialized 
Disconnecting 
TypeNotFound 
HostNotFound 
TryAgain 
NoRecovery 
NoData 

◆ SocketFlags

Enumerator
None 
OutOfBand 
Peek 
DontRoute 
Truncated 
ControlDataTruncated 
Broadcast 
Multicast 
Partial 

◆ SocketOptionLevel

Enumerator
Socket 
IP 
IPv6 
Tcp 
Udp 

◆ SocketOptionName

Enumerator
Debug 
AcceptConnection 
ReuseAddress 
KeepAlive 
DontRoute 
Broadcast 
UseLoopback 
Linger 
OutOfBandInline 
DontLinger 
ExclusiveAddressUse 
SendBuffer 
ReceiveBuffer 
SendLowWater 
ReceiveLowWater 
SendTimeout 
ReceiveTimeout 
Error 
Type 
ReuseUnicastPort 
MaxConnections 
IPOptions 
HeaderIncluded 
TypeOfService 
IpTimeToLive 
MulticastInterface 
MulticastTimeToLive 
MulticastLoopback 
AddMembership 
DropMembership 
DontFragment 
AddSourceMembership 
DropSourceMembership 
BlockSource 
UnblockSource 
PacketInformation 
HopLimit 
IPProtectionLevel 
IPv6Only 
NoDelay 
BsdUrgent 
Expedited 
NoChecksum 
ChecksumCoverage 
UpdateAcceptContext 
UpdateConnectContext 

◆ SocketShutdown

Enumerator
Receive 
Send 
Both 

◆ SocketType

Enumerator
Stream 
Dgram 
Raw 
Rdm 
Seqpacket 
Unknown 

Function Documentation

◆ DECLARE_ENUM_OPERATORS() [1/2]

System::Net::Sockets::DECLARE_ENUM_OPERATORS ( System::Net::Sockets::SocketFlags  )

◆ DECLARE_ENUM_OPERATORS() [2/2]

System::Net::Sockets::DECLARE_ENUM_OPERATORS ( System::Net::Sockets::AddressFamily  )

◆ 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 
)