CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
socket_option_name.h
1
2#pragma once
3
4#include <cstdint>
5
6namespace System {
7namespace Net {
8namespace Sockets {
9
12{
14 Debug = 0x0001,
16 AcceptConnection = 0x0002,
18 ReuseAddress = 0x0004,
20 KeepAlive = 0x0008,
22 DontRoute = 0x0010,
24 Broadcast = 0x0020,
26 UseLoopback = 0x0040,
28 Linger = 0x0080,
30 OutOfBandInline = 0x0100,
32 DontLinger = static_cast<int32_t>(~Linger),
34 ExclusiveAddressUse = static_cast<int32_t>(~ReuseAddress),
36 SendBuffer = 0x1001,
38 ReceiveBuffer = 0x1002,
40 SendLowWater = 0x1003,
42 ReceiveLowWater = 0x1004,
44 SendTimeout = 0x1005,
46 ReceiveTimeout = 0x1006,
48 Error = 0x1007,
50 Type = 0x1008,
52 ReuseUnicastPort = 0x3007,
54 MaxConnections = 0x7fffffff,
56 IPOptions = 1,
60 TypeOfService = 3,
62 IpTimeToLive = 4,
70 AddMembership = 12,
72 DropMembership = 13,
74 DontFragment = 14,
80 BlockSource = 17,
82 UnblockSource = 18,
86 HopLimit = 21,
90 IPv6Only = 27,
92 NoDelay = 1,
94 BsdUrgent = 2,
96 Expedited = 2,
98 NoChecksum = 1,
100 ChecksumCoverage = 20,
102 UpdateAcceptContext = 0x700B,
104 UpdateConnectContext = 0x7010
105};
106} // namespace Sockets
107} // namespace Net
108} // namespace System
@ MulticastInterface
Set the interface used for the outgoing multicast packets.
SocketOptionName
Defines socket option names for the Socket class.
Definition: socket_option_name.h:12
@ BlockSource
Block the IP group/source.
@ DropSourceMembership
Drop the IP group/source.
@ ExclusiveAddressUse
A socket will use the bound address exclusively.
@ HopLimit
Delivers an integer containing the HOP count of the packet.
@ PacketInformation
Receive packet information for IPv4.
@ ReceiveLowWater
Specifies the minimum amount of data for the receive operations.
@ MaxConnections
This option is not supported. It was used to specify the maximum queue length for listening.
@ DontLinger
Indicates if a socket will be closed without lingering.
@ SendBuffer
Specifies the send buffer size.
@ NoChecksum
Send the UDP datagrams with a checksum set to zero.
@ IPOptions
Specifies the IP option that must be inserted to outgoing datagrams.
@ MulticastLoopback
The IP Multicast loopback.
@ UpdateAcceptContext
Updates a client socket with the same properties of a listening socket.
@ IPProtectionLevel
Enables restriction of an IPv6 socket to the specified scope.
@ Linger
The system will block the process on the close attempt until it is able to transmit the data.
@ ReuseAddress
Indicates if a socket can be bound to the address that is already in use.
@ AddMembership
Add an IP group membership.
@ NoDelay
Disables the Nagle algorithm for coalescing the send packets.
@ MulticastTimeToLive
The IP multicast time to live.
@ AcceptConnection
Indicates if a socket is listening for an incoming connection.
@ HeaderIncluded
The header is included to outgoing datagrams.
@ Error
Returns the error status and clear.
@ ReceiveBuffer
Specifies the receive buffer size.
@ DontFragment
Don't fragment the IP datagrams.
@ ReuseUnicastPort
Indicates if the system should defer the ephemeral port allocation for the outbound connections.
@ ReceiveTimeout
Specifies the timeout for the synchronous receive operations.
@ Debug
Record debugging information.
@ AddSourceMembership
Join the IP group/source.
@ BsdUrgent
Use the urgent data as defined in RFC-1222.
@ UnblockSource
Unblock the IP group/source.
@ UpdateConnectContext
Updates a client socket with the same properties of a listening socket.
@ TypeOfService
Change the IP header type of the service field.
@ ChecksumCoverage
Set or get the UDP checksum coverage.
@ UseLoopback
Bypass hardware when possible.
@ DropMembership
Drop an IP group membership.
@ SendLowWater
Specifies the minimum amount of data for the send operations.
@ SendTimeout
Specifies the timeout for the synchronous send operations.
@ Expedited
Use the expedited data as defined in RFC-1222.
@ OutOfBandInline
Receives out-of-band data in the normal data stream.
@ IPv6Only
The socket is restricted to send and receive IPv6 packets only.
@ DontRoute
Send a message without using routing tables.
@ Broadcast
A broadcast packet.
@ KeepAlive
The 'Keep-Alive' header.
Definition: db_command.h:9