CodePorting.Translator.Cs2Cpp.Framework
|
Classes | |
class | Details_SocketException |
Represents the exception thrown when a socket error occurs. Never create instances of this class manually. Use the SocketException class instead. Never wrap the SocketException class instances into System::SmartPtr. More... | |
class | IPPacketInformation |
Represents information about the packet. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
class | LingerOption |
Specifies whether a socket will remain connected after a call to the Close() or Close() methods. It also specifies the period the socket will remain connected if sending of the data continues. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
class | NetworkStream |
Provides the underlying stream of the data for the network access. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
class | Socket |
The Socket class implements the Berkeley sockets interface. More... | |
class | TcpClient |
Represents a client for the TCP network services. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
class | TcpListener |
Represents a listener for the TCP network services. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
class | UdpClient |
Provides User Datagram Protocol (UDP) network services. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More... | |
Typedefs | |
using | SocketException = System::ExceptionWrapper< Details_SocketException > |
Enumerations | |
enum class | SocketType { Stream = 1 , Dgram = 2 , Raw = 3 , Rdm = 4 , Seqpacket = 5 , Unknown = static_cast<int32_t>(-1) } |
Enumerates the socket types. More... | |
enum class | AddressFamily { Unknown = -1 , Unspecified = 0 , Unix = 1 , InterNetwork = 2 , ImpLink = 3 , Pup = 4 , Chaos = 5 , NS = 6 , Ipx = NS , Iso = 7 , Osi = Iso , 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 } |
Enumerates the address families. More... | |
enum class | IOControlCode : int64_t { AsyncIO = 0x8004667D , NonBlockingIO = 0x8004667E , DataToRead = 0x4004667F , OobDataRead = 0x40047307 , AssociateHandle = 0x88000001 , EnableCircularQueuing = 0x28000002 , Flush = 0x28000004 , GetBroadcastAddress = 0x48000005 , GetExtensionFunctionPointer = 0xC8000006 , GetQos = 0xC8000007 , GetGroupQos = 0xC8000008 , MultipointLoopback = 0x88000009 , MulticastScope = 0x8800000A , SetQos = 0x8800000B , SetGroupQos = 0x8800000C , TranslateHandle = 0xC800000D , RoutingInterfaceQuery = 0xC8000014 , RoutingInterfaceChange = 0x88000015 , AddressListQuery = 0x48000016 , AddressListChange = 0x28000017 , QueryTargetPnpHandle = 0x48000018 , NamespaceChange = 0x88000019 , AddressListSort = 0xC8000019 , ReceiveAll = 0x98000001 , ReceiveAllMulticast = 0x98000002 , ReceiveAllIgmpMulticast = 0x98000003 , KeepAliveValues = 0x98000004 , AbsorbRouterAlert = 0x98000005 , UnicastInterface = 0x98000006 , LimitBroadcasts = 0x98000007 , BindToInterface = 0x98000008 , MulticastInterface = 0x98000009 , AddMulticastGroupOnInterface = 0x9800000A , DeleteMulticastGroupFromInterface = 0x9800000B } |
Enumerates the IO control codes. More... | |
enum class | ProtocolFamily { Unknown = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Unknown) , Unspecified = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Unspecified) , Unix = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Unix) , InterNetwork = static_cast<int32_t>(System::Net::Sockets::AddressFamily::InterNetwork) , ImpLink = static_cast<int32_t>(System::Net::Sockets::AddressFamily::ImpLink) , Pup = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Pup) , Chaos = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Chaos) , NS = static_cast<int32_t>(System::Net::Sockets::AddressFamily::NS) , Ipx = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Ipx) , Iso = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Iso) , Osi = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Osi) , Ecma = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Ecma) , DataKit = static_cast<int32_t>(System::Net::Sockets::AddressFamily::DataKit) , Ccitt = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Ccitt) , Sna = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Sna) , DecNet = static_cast<int32_t>(System::Net::Sockets::AddressFamily::DecNet) , DataLink = static_cast<int32_t>(System::Net::Sockets::AddressFamily::DataLink) , Lat = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Lat) , HyperChannel = static_cast<int32_t>(System::Net::Sockets::AddressFamily::HyperChannel) , AppleTalk = static_cast<int32_t>(System::Net::Sockets::AddressFamily::AppleTalk) , NetBios = static_cast<int32_t>(System::Net::Sockets::AddressFamily::NetBios) , VoiceView = static_cast<int32_t>(System::Net::Sockets::AddressFamily::VoiceView) , FireFox = static_cast<int32_t>(System::Net::Sockets::AddressFamily::FireFox) , Banyan = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Banyan) , Atm = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Atm) , InterNetworkV6 = static_cast<int32_t>(System::Net::Sockets::AddressFamily::InterNetworkV6) , Cluster = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Cluster) , Ieee12844 = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Ieee12844) , Irda = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Irda) , NetworkDesigners = static_cast<int32_t>(System::Net::Sockets::AddressFamily::NetworkDesigners) , Max = static_cast<int32_t>(System::Net::Sockets::AddressFamily::Max) } |
Enumerates the protocol families. More... | |
enum class | 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 = static_cast<int32_t>(-1) } |
Enumerates the protocol types. More... | |
enum class | SelectMode { SelectRead = 0 , SelectWrite = 1 , SelectError = 2 } |
Specifies the mode for polling the status of the socket. More... | |
enum class | 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 } |
Enumerates the socket error types. More... | |
enum class | SocketFlags { None = 0x0000 , OutOfBand = 0x0001 , Peek = 0x0002 , DontRoute = 0x0004 , Truncated = 0x0100 , ControlDataTruncated = 0x0200 , Broadcast = 0x0400 , Multicast = 0x0800 , Partial = 0x8000 } |
Provides constant values for the socket messages. More... | |
enum class | SocketOptionLevel { Socket = 0xffff , IP = static_cast<int32_t>(System::Net::Sockets::ProtocolType::IP) , IPv6 = static_cast<int32_t>(System::Net::Sockets::ProtocolType::IPv6) , Tcp = static_cast<int32_t>(System::Net::Sockets::ProtocolType::Tcp) , Udp = static_cast<int32_t>(System::Net::Sockets::ProtocolType::Udp) } |
Defines socket option levels for the 'Socket' class. More... | |
enum class | SocketOptionName { Debug = 0x0001 , AcceptConnection = 0x0002 , ReuseAddress = 0x0004 , KeepAlive = 0x0008 , DontRoute = 0x0010 , Broadcast = 0x0020 , UseLoopback = 0x0040 , Linger = 0x0080 , OutOfBandInline = 0x0100 , DontLinger = static_cast<int32_t>(~Linger) , ExclusiveAddressUse = static_cast<int32_t>(~ReuseAddress) , SendBuffer = 0x1001 , ReceiveBuffer = 0x1002 , SendLowWater = 0x1003 , ReceiveLowWater = 0x1004 , SendTimeout = 0x1005 , ReceiveTimeout = 0x1006 , Error = 0x1007 , Type = 0x1008 , ReuseUnicastPort = 0x3007 , MaxConnections = 0x7fffffff , 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 , NoChecksum = 1 , ChecksumCoverage = 20 , UpdateAcceptContext = 0x700B , UpdateConnectContext = 0x7010 } |
Defines socket option names for the Socket class. More... | |
enum class | SocketShutdown { Receive = 0x00 , Send = 0x01 , Both = 0x02 } |
Defines constants used by the Socket.Shutdown method. More... | |
Functions | |
bool | operator== (IPPacketInformation left, IPPacketInformation right) |
bool | operator!= (IPPacketInformation left, IPPacketInformation right) |
using System::Net::Sockets::SocketException = typedef System::ExceptionWrapper<Details_SocketException> |
|
strong |
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. |
|
strong |
Enumerates the IO control codes.
|
strong |
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. |
|
strong |
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. |
|
strong |
|
strong |
Enumerates the socket error types.
|
strong |
Provides constant values for the socket messages.
|
strong |
Defines socket option levels for the 'Socket' class.
|
strong |
Defines socket option names for the Socket class.
|
strong |
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. |
|
strong |
Enumerates the socket types.
bool System::Net::Sockets::operator!= | ( | IPPacketInformation | left, |
IPPacketInformation | right | ||
) |
bool System::Net::Sockets::operator== | ( | IPPacketInformation | left, |
IPPacketInformation | right | ||
) |