Module agi_tcp_server

The Agi-Tcp-Server listens to a given port.

Copyright © 2005-2006 Ericsson

Version: 1.0

Authors: Freek Sanders (freekisanders@gmail.com) [web site: http://www.freeksanders.tk].

Description

The Agi-Tcp-Server listens to a given port. When a process connects to this port, the server calls the given fun with the newly created socket as argument. The given fun starts a agi-worker-server process (see agi_worker)

Function Index

children/1
cold_start/5*
port_name/1*
possibly_start_another/5*
socket_loop/5*
start_accept/2*
start_child/3*
start_client/3
start_raw_server/4
stop/1

Function Details

children/1

children(Port) -> term()

cold_start/5 *

cold_start(Master, Port, Fun, Max, Length) -> term()

port_name/1 *

port_name(Port) -> term()

possibly_start_another/5 *

possibly_start_another(New, Listen, Active, Fun, Max) -> term()

socket_loop/5 *

socket_loop(Listen, New, Active, Fun, Max) -> term()

start_accept/2 *

start_accept(Listen, Fun) -> term()

start_child/3 *

start_child(Parent, Listen, Fun) -> term()

start_client/3

start_client(Host, Port, Length) -> term()

start_raw_server/4

start_raw_server(Port, Fun, Max, Length) -> term()

stop/1

stop(Port) -> term()