The SmartFox type exposes the following members.

Constructors

  NameDescription
Public methodSmartFox()()()()
Creates a new SmartFox instance.
Public methodSmartFox(Boolean)
Creates a new SmartFox instance.
Public methodSmartFox(UseWebSocket)
Creates a new SmartFox instance enabling websocket communication instead of the default socket communication.
Public methodSmartFox(UseWebSocket, Boolean)
Creates a new SmartFox instance enabling websocket communication instead of the default socket communication.

Methods

  NameDescription
Public methodAddEventListener
Adds a delegate to a given API event type that will be used for callbacks.
Public methodAddLogListener
Registers a delegate method for log messages callbacks.
Public methodConnect()()()()
Public methodConnect(String)
Public methodConnect(ConfigData)
Establishes a connection between the client and a SmartFoxServer 2X instance using a configuration object.
Public methodConnect(String, Int32)
Establishes a connection between the client and a SmartFoxServer 2X instance.
Public methodDisconnect
Closes the connection between the client and the SmartFoxServer 2X instance.
Public methodEnableLagMonitor(Boolean)
Public methodEnableLagMonitor(Boolean, Int32)
Public methodEnableLagMonitor(Boolean, Int32, Int32)
Enables the automatic realtime monitoring of the lag between the client and the server (round robin).
Public methodGetRoomById
Retrieves a Room object from its id.
Public methodGetRoomByName
Retrieves a Room object from its name.
Public methodGetRoomListFromGroup
Retrieves the list of Rooms which are part of the specified Room Group.
Public methodInitCrypto
Initializes the connection cryptography to protect all client-server communications with standard TLS protocol.
Public methodInitUDP()()()()
Public methodInitUDP(String)
Public methodInitUDP(String, Int32)
Initializes the UDP protocol by performing an handshake with the server.
Public methodKillConnection
Simulates an abrupt disconnection from the server.
Public methodLoadConfig()()()()
Public methodLoadConfig(Boolean)
Public methodLoadConfig(String)
Public methodLoadConfig(String, Boolean)
Loads the client configuration file.
Public methodProcessEvents
Tells the API to process all event queues and execute the delegate callbacks.
Public methodRemoveAllEventListeners
Removes all event listeners.
Public methodRemoveEventListener
Removes a delegate registration for a given API event.
Public methodRemoveLogListener
Removes a delegate method for log messages callbacks.
Public methodSend
Sends a request to the server.
Public methodSetClientDetails
Allows to set custom client details used to gather statistics about the client platform in the SFS2X Analytics Module.

Properties

  NameDescription
Public propertyBuddyManager
Returns a reference to the Buddy Manager.
Public propertyCompressionThreshold
Returns the current compression threshold.
Public propertyConfig
Returns the client configuration details.
Public propertyConnectionMode
Returns the current connection mode after a connection has been successfully established.
Public propertyCurrentIp
Returns the IP address or domain name of the SmartFoxServer 2X instance to which the client is connected.
Public propertyCurrentPort
Returns the TCP port of the SmartFoxServer 2X instance to which the client is connected.
Public propertyCurrentZone
Returns the Zone currently in use, if the user is already logged in.
Public propertyDebug
Indicates whether the client-server messages debug is enabled or not.
Public propertyHttpUploadURI
Returns the HTTP URI that can be used to upload files to SmartFoxServer 2X, using regular HTTP POST.
Public propertyIsConnected
Indicates whether the client is connected to the server or not.
Public propertyJoinedRooms
Returns a list of Room objects representing the Rooms currently joined by the client.
Public propertyLastJoinedRoom
Returns the object representing the last Room joined by the client, if any.
Public propertyLogger
Returns a reference to the internal Logger instance used by SmartFoxServer 2X.
Public propertyMaxMessageSize
Returns the maximum size of messages allowed by the server.
Public propertyMySelf
Returns the User object representing the client when connected to a SmartFoxServer 2X instance.
Public propertyRoomList
Returns a list of Room objects representing the Rooms currently "watched" by the client.
Public propertyRoomManager
Returns a reference to the Room Manager.
Public propertySessionToken
Returns the unique session token of the client.
Public propertyThreadSafeMode
Sets the API to run with an event queue that needs to be processed by the client.
Public propertyUdpAvailable
Indicates whether the UPD protocol is available or not in the current runtime.
Public propertyUdpInited
Indicates whether the UDP handshake has been performed successfully or not.
Public propertyUseBlueBox
Indicates whether the client should attempt a tunnelled http connection through the BlueBox in case a socket connection can't be established.
Public propertyUserManager
Returns a reference to the User Manager.
Public propertyVersion
Returns the current version of the SmartFoxServer 2X C# API.

See Also