Ashet OS

async_call: ashet.network.tcp.Receive

Inputs

socket: TcpSocket
buffer: bytebuf
read_all: bool

if true, will read until buffer.len bytes arrived. otherwise will read until the end of a single packet

Outputs

bytes_received: usize

Errors

AlreadyConnected
AlreadyConnecting
BufferError
ConnectionAborted
ConnectionClosed
ConnectionReset
IllegalArgument
IllegalValue
InProgress
InvalidHandle
LowlevelInterfaceError
NotConnected
OutOfMemory
Routing
SystemResources
Timeout