System::Net::Sockets::Socket::BeginReceive method

Socket::BeginReceive method

Initiates an asynchronous write operation.

System::SharedPtr<IAsyncResult> System::Net::Sockets::Socket::BeginReceive(System::ArrayPtr<uint8_t> buffer, int32_t offset, int32_t size, SocketFlags socketFlags, AsyncCallback callback, System::SharedPtr<Object> state)
ParameterTypeDescription
bufferSystem::ArrayPtr<uint8_t>A buffer where the received data will be assigned.
offsetint32_tThe offset in bytes in the specified array.
sizeint32_tThe number of bytes in the specified array starting from the ‘offset’ parameter.
socketFlagsSocketFlagsThe receive behaviour.
callbackAsyncCallbackA callback that will be called when the operation completes.
stateSystem::SharedPtr<Object>User-provided data used to uniquely identify each asynchronous receive operation.

ReturnValue

An IAsyncResult object representing the initiated asynchronous receive operation.

See Also