Connect
Connect

Connects the network object to the given server / chanel

bSuccess = myNetwork.Connect( IP, Port, Name, Channel )

Return value
TRUE if the connection was successful, otherwise FALSE.

Parameters
  • IP
    The IP of the computer / server to connect to. Default is the current computer.
  • Port
    Port # to connect to. Default is 1203
  • Name
    A unique name for the player. Default is a randomly generated string.
  • Channel
    Name of the chanel to connect to. This can be anything, but should be short and have only alphanumeric characters and underscores. Default is "JAM"
Comments

This does not connect immediatly. If it returns TRUE, it means it will try to connect. You should then use IsConnected to wait until it has connected. This may take several seconds depending on the connection speed of the user, and you should include an option to cancel (call Disconnect to cancel)

See also
Network:Disconnect
Network:IsConnected



JAM © 2005 no one in partiular
Project started by David Evans in 2005