SocketFlags Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies socket send and receive behaviors.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:   System.Net.Sockets
Assembly:  System (in System.dll)

[<FlagsAttribute>]
type SocketFlags

Member nameDescription
Broadcast

Indicates a broadcast packet.

ControlDataTruncated

Indicates that the control data did not fit into an internal 64-KB buffer and was truncated.

DontRoute

Send without using routing tables.

MaxIOVectorLength

Provides a standard value for the number of WSABUF structures that are used to send and receive data. This value is not used or supported on .NET Framework 4.5.

Multicast

Indicates a multicast packet.

None

Use no flags for this call.

OutOfBand

Process out-of-band data.

Partial

Partial send or receive for message.

Peek

Peek at the incoming message.

Truncated

The message was too large to fit into the specified buffer and was truncated.

The following example sends data and specifies None for SocketFlags.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: