AddressIPSocket.connect

Connects this socket the specified address memorises and it. This socket needs to have been created by socket().

  1. int connect(cstring remote_ip_address, ushort remote_port)
  2. int connect(InAddr remote_address)
    class AddressIPSocket(bool IPv6 = false)
    override
    int
    connect

Parameters

remote_address InAddr

remote address

Return Value

Type: int

0 on success or -1 on failure. On failure errno is set appropriately.

Errors: as above.

Meta