flix

0.79.0

TcpConnect

Effect for connecting to TCP servers, and its functions.

eff TcpConnectSource

Effect for connecting to TCP servers.

Default Handler

runWithIO

Operations

def connect(ip: IpAddr, port: Int16): Result[IoError, TcpSocket] \ TcpConnect§ Source

Opens a TCP connection to the given ip address and port.

Definitions

def handle(f: a -> b \ ef): a -> b \ (ef - TcpConnect) + IO§ Source

Handles the TcpConnect effect of the given function f.

In other words, re-interprets the TcpConnect effect using the IO effect.

@DefaultHandler
def runWithIO(f: Unit -> a \ ef): a \ (ef - TcpConnect) + IO§ Source

Runs the TcpConnect effect of the given function f.

In other words, re-interprets the TcpConnect effect using the IO effect.