Public Member Functions | Properties

Electrotank.Electroserver5.Core.SyncSocketHttpConnection Class Reference

This class connects to ElectroServer via HTTP. More...

Inheritance diagram for Electrotank.Electroserver5.Core.SyncSocketHttpConnection:
Electrotank.Electroserver5.Core.Connection

List of all members.

Public Member Functions

 SyncSocketHttpConnection (AvailableConnection availableConnection, EsEngine engine, Server server)
 Creates a new instance of the class and configures it with the connection information passed in.
override void Close ()
 Closes the connection.
override void Connect ()
 Attempts to connect to ElectroServer via Socket using the connection information provided.
void Dispose ()
void Receive (byte[] bytes)
override void Send (EsMessage message)
 Sends the message to ElectroServer.

Properties

override bool Connected [get, set]
 Returns true if the connection has been established.
override Protocol Protocol [get]
 The protocol this Connection implements.
Socket Socket [get, set]

Detailed Description

This class connects to ElectroServer via HTTP.


Constructor & Destructor Documentation

Electrotank.Electroserver5.Core.SyncSocketHttpConnection.SyncSocketHttpConnection ( AvailableConnection  availableConnection,
EsEngine  engine,
Server  server 
)

Creates a new instance of the class and configures it with the connection information passed in.

Parameters:
availableConnection The AvailableConnection instance containing the connection information
engine The EsEngine instance.
server The Server instance.

Member Function Documentation

override void Electrotank.Electroserver5.Core.SyncSocketHttpConnection.Close (  )  [virtual]

Closes the connection.

Implements Electrotank.Electroserver5.Core.Connection.

override void Electrotank.Electroserver5.Core.SyncSocketHttpConnection.Connect (  )  [virtual]

Attempts to connect to ElectroServer via Socket using the connection information provided.

Implements Electrotank.Electroserver5.Core.Connection.

void Electrotank.Electroserver5.Core.SyncSocketHttpConnection.Dispose (  ) 
void Electrotank.Electroserver5.Core.SyncSocketHttpConnection.Receive ( byte[]  bytes  ) 
override void Electrotank.Electroserver5.Core.SyncSocketHttpConnection.Send ( EsMessage  message  )  [virtual]

Sends the message to ElectroServer.

Parameters:
message The message to send.

Implements Electrotank.Electroserver5.Core.Connection.


Property Documentation

override bool Electrotank.Electroserver5.Core.SyncSocketHttpConnection.Connected [get, set]

Returns true if the connection has been established.

Reimplemented from Electrotank.Electroserver5.Core.Connection.

override Protocol Electrotank.Electroserver5.Core.SyncSocketHttpConnection.Protocol [get]

The protocol this Connection implements.

Reimplemented from Electrotank.Electroserver5.Core.Connection.

Socket Electrotank.Electroserver5.Core.SyncSocketHttpConnection.Socket [get, set]