iFun Engine API  1.0.0-b6053
Great Technology for Great Games
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fun::funtest::Session Class Referenceabstract

Public Types

enum  State { kOpening, kOpened, kClosed, kRedirecting }
 

Public Member Functions

virtual void Close ()=0
 
virtual void CloseRequest ()=0
 
virtual void CloseTransport ()=0
 
virtual void CloseTransport (TransportProtocol protocol)=0
 
virtual void ConnectHttp (const string &url, EncodingScheme encoding)=0
 
virtual void ConnectHttp (const string &ip, uint16_t port, EncodingScheme encoding)=0
 
virtual void ConnectHttp (const boost::asio::ip::tcp::endpoint &endpoint, EncodingScheme encoding)=0
 
virtual void ConnectTcp (const string &ip, uint16_t port, EncodingScheme encoding, bool use_ssl=false)=0
 
virtual void ConnectTcp (const boost::asio::ip::tcp::endpoint &endpoint, EncodingScheme encoding, bool use_ssl=false)=0
 
virtual void ConnectUdp (const string &ip, uint16_t port, EncodingScheme encoding)=0
 
virtual void ConnectUdp (const boost::asio::ip::udp::endpoint &endpoint, EncodingScheme encoding)=0
 
virtual void ConnectWebSocket (const string &url, EncodingScheme encoding)=0
 
virtual void ConnectWebSocket (const string &ip, uint16_t port, EncodingScheme encoding)=0
 
virtual void ConnectWebSocket (const boost::asio::ip::tcp::endpoint &endpoint, EncodingScheme encoding)=0
 
 DECLARE_CLASS_PTR (Session)
 
virtual JsonGetContext ()=0
 
virtual const JsonGetContext () const =0
 
virtual boost::mutex & GetContextMutex () const =0
 
virtual const SessionId & id () const =0
 
virtual bool IsRedirected () const =0
 
virtual bool IsTransportAttached () const =0
 
virtual bool IsTransportAttached (TransportProtocol protocol) const =0
 
virtual operator boost::mutex & () const =0
 
virtual void SendMessage (const string &message_type, const Json &message, TransportProtocol protocol)=0
 
virtual void SendMessage (const string &message_type, const Ptr< FunMessage > &message, TransportProtocol protocol)=0
 
virtual void SendMessage (int32_t message_type, const Ptr< FunMessage > &message, TransportProtocol protocol)=0
 
virtual void SendMessage (const ProtobufExtensionIdentifier &message_type, const Ptr< FunMessage > &message, TransportProtocol protocol)=0
 
virtual void SendMessage (const string &message_type, const Json &message, Encryption encryption, TransportProtocol protocol)=0
 
virtual void SendMessage (const string &message_type, const Ptr< FunMessage > &message, Encryption encryption, TransportProtocol protocol)=0
 
virtual void SendMessage (int32_t message_type, const Ptr< FunMessage > &message, Encryption encryption, TransportProtocol protocol)=0
 
virtual void SendMessage (const ProtobufExtensionIdentifier &message_type, const Ptr< FunMessage > &message, Encryption encryption, TransportProtocol protocol)=0
 
virtual void SetContext (const Json &ctxt)=0
 
virtual State state () const =0
 

Static Public Member Functions

static Ptr< SessionCreate ()