CRaPI - Correct Robust and Perfect API

Player.StartUp Method 

Connects to the server and receives player_type, player_param, server_param from the server.

public bool StartUp(
   string pHost,
   int pPort,
   int pTimeOut
);

Parameters

pHost
The url or ip of the host
pPort
The port to connect to on the host
pTimeOut
The time before a receive command time outs

Return Value

true if the start-up was successful

Remarks

This should be used instead of using manually Connect because this method won't return until all messages from the server that is necessary for the player is received.

See Also

Player Class | TeamYaffa.CRaPI Namespace