NanoSocket.receive

Receive bytes on this socket. Memory is allocated by nanomsg and deleted in the NanoBuffer destructor.

  1. NanoBuffer receive(Flag!"blocking" blocking, string file, size_t line)
    struct NanoSocket
    @safe return scope const
    receive
    (
    Flag!"blocking" blocking = Yes.blocking
    ,
    in string file = __FILE__
    ,
    in size_t line = __LINE__
    )
  2. void[] receive(void[] buffer, Flag!"blocking" blocking, string file, size_t line)