InetSocketAddress.from_string


Description:

[ CCode ( has_construct_function = false , type = "GSocketAddress*" ) ]
[ Version ( since = "2.40" ) ]
public InetSocketAddress.from_string (string address, uint port)

Creates a new InetSocketAddress for address and port.

If address is an IPv6 address, it can also contain a scope ID (separated from the address by a `%`).

Parameters:

address

the string form of an IP address

port

a port number

Returns:

a new InetSocketAddress, or null if address cannot be parsed.




2022 vala-language.org