The OpenD Programming Language

Socket.sendTo

Send data to a specific destination Address. If the destination address is not specified, a connection must have been made and that address is used. If the socket is blocking and there is no buffer space left, sendTo waits.

  1. ptrdiff_t sendTo(const(void)[] buf, SocketFlags flags, Address to)
    class Socket
    @trusted
    ptrdiff_t
    sendTo
    (
    scope const(void)[] buf
    ,,)
  2. ptrdiff_t sendTo(const(void)[] buf, Address to)
  3. ptrdiff_t sendTo(const(void)[] buf, SocketFlags flags)
  4. ptrdiff_t sendTo(const(void)[] buf)

Return Value

Type: ptrdiff_t

The number of bytes actually sent, or Socket.ERROR on failure.

Meta