public enum SocketFlags
Object
ValueType
Enum
SocketFlags
System
Networking
Controls the transfer behavior when sending and receiving data on a Socket instance.
The following methods use this enumeration:
- System.Net.Sockets.Socket.BeginReceive(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)
- System.Net.Sockets.Socket.BeginReceiveFrom(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint@,System.AsyncCallback,System.Object)
- System.Net.Sockets.Socket.BeginSend(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)
- System.Net.Sockets.Socket.BeginSendTo(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint,System.AsyncCallback,System.Object)
- System.Net.Sockets.Socket.Receive(System.Byte[],System.Int32,System.Net.Sockets.SocketFlags)
- System.Net.Sockets.Socket.ReceiveFrom(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint@)
- System.Net.Sockets.Socket.Send(System.Byte[],System.Int32,System.Net.Sockets.SocketFlags)
- System.Net.Sockets.Socket.SendTo(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint)
FlagsAttribute
System.Net.Sockets Namespace
SocketFlags Fields
SocketFlags.DontRoute Field
SocketFlags.None Field
SocketFlags.OutOfBand Field
SocketFlags.Partial Field
SocketFlags.Peek Field
SocketFlags.value__ Field
DontRoute = 0x4;
Specifies not to use routing tables to transmit the data. If there is a router between the local and destination addresses, the data will be lost.
System.Net.Sockets.SocketFlags Enum, System.Net.Sockets Namespace
None = 0x0;
No flags are specified.
System.Net.Sockets.SocketFlags Enum, System.Net.Sockets Namespace
OutOfBand = 0x1;
Specifies to send or receive out-of-band (OOB) data. OOB data is specially marked data that can be received independently of unmarked data.[Note: Used only with a connection-oriented protocol.
]
System.Net.Sockets.SocketFlags Enum, System.Net.Sockets Namespace
Partial = 0x8000;
Specifies that a partial message has been received.[Note: Used only with a message-oriented protocol.
]
System.Net.Sockets.SocketFlags Enum, System.Net.Sockets Namespace
Peek = 0x2;
Specifies to peek at the incoming data. This copies data to the input buffer but does not remove it from the input queue.
System.Net.Sockets.SocketFlags Enum, System.Net.Sockets Namespace
value__;
System.Net.Sockets.SocketFlags Enum, System.Net.Sockets Namespace