Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Ports and Processes : Tcp Ports : tcp.accept

Syntax

#(%tcp-port.accept)
#(%tcp-port.accept,%timeout)

%tcp-port is any port created using tint.listen. %timeout optionally specifies how long to wait in seconds for a client to connect. A server will use this call to accept connection requests from clients; the return value will be the name of a port, which will be the server side of a connected socket.

Example

#(def,l,#(tint.listen,#(tint.service,http)))

#(#(l).accept)
port-8