std.socket.socket.receive_from
- multiple declarations
- Function Socket.receiveFrom
- Function Socket.receiveFrom
- Function Socket.receiveFrom
Function Socket.receiveFrom
Receive data and get the remote endpoint
.
If the socket is Address
blocking
,
waits until there is data to
be received.
receiveFrom
Prototypes
long receiveFrom( void[] buf, SocketFlags flags, Address from ) @trusted; long receiveFrom( void[] buf, Address from ) @safe; long receiveFrom( void[] buf, SocketFlags flags ) @trusted; long receiveFrom( void[] buf ) @safe;
Returns
The number of bytes actually received, 0
if the remote side
has closed the connection, or
on failure.
Socket.ERROR
Function Socket.receiveFrom
Receive data and get the remote endpoint
.
If the socket is Address
blocking
,
waits until there is data to
be received.
receiveFrom
Prototypes
long receiveFrom( void[] buf, SocketFlags flags, Address from ) @trusted; long receiveFrom( void[] buf, Address from ) @safe; long receiveFrom( void[] buf, SocketFlags flags ) @trusted; long receiveFrom( void[] buf ) @safe;
Returns
The number of bytes actually received, 0
if the remote side
has closed the connection, or
on failure.
Socket.ERROR
Function Socket.receiveFrom
Receive data and get the remote endpoint
.
If the socket is Address
blocking
,
waits until there is data to
be received.
receiveFrom
Prototypes
long receiveFrom( void[] buf, SocketFlags flags, Address from ) @trusted; long receiveFrom( void[] buf, Address from ) @safe; long receiveFrom( void[] buf, SocketFlags flags ) @trusted; long receiveFrom( void[] buf ) @safe;
Returns
The number of bytes actually received, 0
if the remote side
has closed the connection, or
on failure.
Socket.ERROR
Authors
Christopher E. Miller, David Nadlinger, Vladimir Panteleev