AsyncSocket.bind

Assigns the network address pointed to by addr, with addrlen specifying the size, in bytes, of this address, as the local name of this socket.

  1. bool bind(sockaddr* addr, socklen_t addrlen)
    class AsyncSocket
    nothrow
    bool
    bind
    (
    sockaddr* addr
    ,
    socklen_t addrlen
    )
  2. bool bind(NetworkAddress addr)

Return Value

Type: bool

true if the binding was successful.

See Also

Meta