Method Receive
Receive(Int32)
Receive data from the other end of this socket. NOTE! This allocates a byte array of size bufferSize every time that you call it. See other overloads for more optimization
Declaration
byte[] Receive(int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bufferSize | the maximum amount of data you will receive |
Returns
Type | Description |
---|---|
System.Byte[] |
Receive(Byte[])
Receive data from the other end of this socket
Declaration
byte[] Receive(byte[] receiveBuffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | receiveBuffer | The buffer to store the received data |
Returns
Type | Description |
---|---|
System.Byte[] |