Click or drag to resize

SmartFoxSend Method

Sends a request to the server.

Namespace:  Sfs2X
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public void Send(
	IRequest request
)

Parameters

request
Type: IRequest
A request object.
Remarks
All the available request objects can be found under the Sfs2X.Requests namespace.
Examples
The following example sends a login request:
sfs.Send( new LoginRequest("KermitTheFrog", "KermitPass", "TheMuppetZone") );
Examples
The following example sends a login request:
sfs.Send( new JoinRoomRequest("Lobby") );
Examples
The following example creates an object containing some parameters and sends it to the server-side Extension.
ISFSObject parameters = SFSObject.NewInstance();
parameters.SetInt("x", 10);
parameters.SetInt("y", 37);
sfs.Send( new ExtensionRequest("setPosition", parameters) );
See Also