Skip to content
Josh Wright edited this page Jan 14, 2021 · 3 revisions

Socket

A type representing a communication link between two programs running on a network. A server can bind to a socket when serving (i.e. this is where the server can be reached). Other network interfaces can also be reached via a socket, such as a database. Either an ip host & port or a unix socket path.

public enum Socket

Enumeration Cases

ip

An ip address host at port port.

case ip(host: String, port: Int)

unix

A unix domain socket (IPC socket) at path path.

case unix(path: String)
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally