SmartFoxServer Silverlight API
Connect Method (ipAdr, port)
NamespacesSmartFoxClientAPISmartFoxClientConnect(String, Int32)
Establish a connection to SmartFoxServer.
The client usually gets connected to SmartFoxServer through a socket connection. In SmartFoxServer Pro, if a socket connection is not available and the smartConnect property is set to true, an http connection to the BlueBox module is attempted.
When a successful connection is established, the GetConnectionMode()()() can be used to check the current connection mode.
Declaration Syntax
C#Visual BasicVisual C++
public void Connect(
	string ipAdr,
	int port
)
Public Sub Connect ( _
	ipAdr As String, _
	port As Integer _
)
public:
void Connect(
	String^ ipAdr, 
	int port
)
Parameters
ipAdr (String)
the SmartFoxServer ip address.
port (Int32)
the SmartFoxServer TCP port (optional)
Remarks

Sends:
SFSEvent..::.OnConnectionDelegate

History:
SmartFoxServer Pro v1.6.0 - BlueBox connection attempt in case of socket connection not available.

Version:
SmartFoxServer Basic (except BlueBox connection) / Pro

Examples
The following example shows how to connect to SmartFoxServer.
CopyC#
smartFox.Connect("127.0.0.1", 9339);
See Also

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)