SendPacketsElement Class

SendPacketsElement Class

 

Represents an element in a SendPacketsElement array.

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

System.Object
  System.Net.Sockets.SendPacketsElement

public class SendPacketsElement

NameDescription
System_CAPS_pubmethodSendPacketsElement(Byte[])

Initializes a new instance of the SendPacketsElement class using the specified buffer.

System_CAPS_pubmethodSendPacketsElement(Byte[], Int32, Int32)

Initializes a new instance of the SendPacketsElement class using the specified buffer, buffer offset, and count.

System_CAPS_pubmethodSendPacketsElement(Byte[], Int32, Int32, Boolean)

Initializes a new instance of the SendPacketsElement class using the specified buffer, buffer offset, and count with an option to combine this element with the next element in a single send request from the sockets layer to the transport.

System_CAPS_pubmethodSendPacketsElement(String)

Initializes a new instance of the SendPacketsElement class using the specified file.

System_CAPS_pubmethodSendPacketsElement(String, Int32, Int32)

Initializes a new instance of the SendPacketsElement class using the specified filename path, offset, and count.

System_CAPS_pubmethodSendPacketsElement(String, Int32, Int32, Boolean)

Initializes a new instance of the SendPacketsElement class using the specified filename path, buffer offset, and count with an option to combine this element with the next element in a single send request from the sockets layer to the transport.

NameDescription
System_CAPS_pubpropertyBuffer

Gets the buffer to be sent if the SendPacketsElement class was initialized with a buffer parameter.

System_CAPS_pubpropertyCount

Gets the count of bytes to be sent.

System_CAPS_pubpropertyEndOfPacket

Gets a Boolean value that indicates if this element should not be combined with the next element in a single send request from the sockets layer to the transport.

System_CAPS_pubpropertyFilePath

Gets the filename of the file to send if the SendPacketsElement class was initialized with a filepath parameter.

System_CAPS_pubpropertyOffset

Gets the offset, in bytes, from the beginning of the data buffer or file to the location in the buffer or file to start sending the data.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The SendPacketsElement class is used to enhance the Socket class for use by server applications that use asynchronous network I/O to achieve the highest performance. The SendPacketsElement class is used with the SocketAsyncEventArgs.SendPacketsElements property to get or set a data buffer or file to be sent using the Socket.SendPacketsAsync method.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0

Instances of this class are thread safe.

Return to top
Show:
© 2016 Microsoft