tcp_listen

tcp_listen — creates a server-side TCP socket connection.

Syntax

tcp_listen (port, backlog?)

		

Arguments

port

The port to connect to.

backlog

The IP address of the host machine.

Returns

A file descriptor for a new, connected socket.

Description

This function creates a connected socket. This can be accessed with Gamma fd_* functions such as fd_write and fd_read.

Example

See the example for tcp_accept.

See Also

tcp_accept, tcp_connect