Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions PosixTcpSocket.connect

1
2
3
4
5
6
7
module juptune.event.io;

Result connect(
    const const char[] address, 
    bool lookupWasPerformed, 
    ushort defaultPort = cast(ushort)0u
);

Documentation

Connects to the target address.

This overload is for convenience as it will call IpAddress.parseon address.

This overload, if parsing of addressfails, will attempt a DNS lookup to find the IP address instead.

Params

Throws

Asserts that openhas been called first.

Anything thrown by IpAddress.parse.

Anything thrown by the main overload.

Returns

A Result

Override Functions PosixTcpSocket.connect

1
2
3
4
5

Documentation

Connects to the target address.

The addressis converted into an IPv6 address before the connection is attempted.

Params

Throws

Asserts that openhas been called first.

Any LinuxErrorthrown by libc's connectsyscall.

Returns

A Result