Sends a request to the server.

Namespace: Sfs2X
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.0.0 (1.7.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:
 Copy imageCopy
sfs.Send( new LoginRequest("KermitTheFrog", "KermitPass", "TheMuppetZone") );

Examples

The following example sends a login request:
 Copy imageCopy
sfs.Send( new JoinRoomRequest("Lobby") );

Examples

The following example creates an object containing some parameters and sends it to the server-side Extension.
 Copy imageCopy
ISFSObject parameters = SFSObject.NewInstance();
parameters.SetInt("x", 10);
parameters.SetInt("y", 37);
sfs.Send( new ExtensionRequest("setPosition", parameters) );

See Also