Datagram.read

Read bytes from an available datagram into the given array. When provided, the 'from' address will be populated with the origin of the incoming data. Note that we employ the timeout mechanics exposed via our Socket superclass.

Returns the number of bytes read from the input, or Eof if the socket cannot read

  1. size_t read(void[] src)
  2. size_t read(void[] dst, Address from)
    class Datagram
    read
    (
    void[] dst
    ,)

Meta