AsyncSocket.receiveFrom

Submits an asynchronous request on this socket to receive data from an unknown sender, whose address will also be received. Upon successful reception of at most data.length bytes onReceive will be called with the received bytes as a slice of data and from will have been set to the sender's address. This method may only be called on connectionless sockets, to retrieve the remote address on connection-oriented sockets, refer to remoteAddress.

class AsyncSocket
nothrow
void
receiveFrom

See Also

receive, receiveExactly, remoteAddress

Meta