BeginSend()
Contents
[
Hide
]Socket::BeginSend(System::ArrayPtr<uint8_t>, int32_t, int32_t, SocketFlags, AsyncCallback, System::SharedPtr<Object>) method
Initiates an asynchronous send operation.
System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginSend(System::ArrayPtr<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags, AsyncCallback callback, System::SharedPtr<Object> state)
Arguments
Parameter | Type | Description |
---|---|---|
buffer | System::ArrayPtr<uint8_t> | A buffer to read data from. |
offset | int32_t | The offset in bytes in the specified array. |
size | int32_t | The number of bytes in the specified array starting from the ‘offset’ parameter. |
socketFlags | SocketFlags | The send behaviour. |
callback | AsyncCallback | A callback that will be called when the operation completes. |
state | System::SharedPtr<Object> | User-provided data used to uniquely identify each asynchronous send operation. |
Return Value
An IAsyncResult object representing the initiated asynchronous send operation.
See Also
- Enum SocketFlags
- Typedef SharedPtr
- Typedef ArrayPtr
- Typedef AsyncCallback
- Class IAsyncResult
- Class Object
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Slides