Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions PosixUdpSocket.recvmsg

1
2
3
4
5
6
7
8
9
10
module juptune.event.io;

Result recvmsg(
    void[][] scatteredDataToReceive, 
    ulong bytesRead, 
    Nullable!(
        IpAddress
    ) senderIp, 
    Duration timeout = zero()
);

Documentation

Receives a single datagram, potentially from the "connected" host, or from any clients on the port this socket is listening to.

Params

Throws

Asserts that openhas been called first.

IoError.udpTruncatedif the datagram wasn't able to fit into the provided buffers, causing data to be dropped (but still read into the buffers).

Any LinuxError(potentially converted to an IoError) thrown by the recvmsgsyscall.

Returns

A Result