class Stream

extends Stream.StdioStream

Provides a tcp stream implementation of the standard stream object

class contents [NB. Highlighted attributes are static members]
Functions
function accept() - Accept an incomming connection
function listen(number) - Set the number of slots the system listens on for connections. 5-10 is a good number.
Variables
variable af - The address family of the socket
variable remoteip - After an accept(), this is set to the remote IP address.
variable remoteport - After an accept(), this is set to the remote port.

Functions

function accept Click to go up to the list
Accept an incomming connection
Declaration:
    function accept()
Description:
This function will accept a connection and return a Network.TCPStream object. This function will only work if the socket was initially created using Network.tcpBind().

function listen Click to go up to the list
Set the number of slots the system listens on for connections. 5-10 is a good number.
Declaration:
    function listen( number backlog )
Parameters:
    Parameter #1: number backlog - The number of slots

Variables

number af Click to go up to the list
The address family of the socket

string remoteip Click to go up to the list
After an accept(), this is set to the remote IP address.

string remoteport Click to go up to the list
After an accept(), this is set to the remote port.

Automatically generated at 12:07PM, Wednesday 25 May 2005 by feritedoc.