Socket.sendTo

send data over an unconnected socket

The second form allows passing SockAddr* types directly

  1. ssize_t sendTo(void[] data, int flags, SockAddr destAddr, Timeout timeout)
  2. ssize_t sendTo(void[] data, int flags, SA destAddr, Timeout timeout)
    struct Socket
    @trusted @nogc
    ssize_t
    sendTo
    (
    SA
    )
    (
    const void[] data
    ,
    int flags
    ,
    auto ref SA destAddr
    ,)
    if (
    !is(SA == SockAddr) &&
    is(typeof(SockAddr(destAddr)) == SockAddr)
    )

Meta