Method | Description | |
---|---|---|
AttachTransport ( |
||
Connect ( TransportProtocol protocol, FunEncoding type, Fun.HostAddr addr ) : bool | ||
CreateFunMessage ( object msg, MessageType msg_type ) : FunMessage | ||
DetachTransport ( TransportProtocol protocol ) : void | ||
FunapiNetwork ( bool session_reliability = false ) : UnityEngine | ||
GetDefaultProtocol ( ) : TransportProtocol | ||
GetEncoding ( TransportProtocol protocol ) : FunEncoding | ||
GetMessage ( FunMessage msg, MessageType msg_type ) : object | ||
GetMessageProtocol ( string msg_type ) : TransportProtocol | ||
GetTransport ( TransportProtocol protocol ) : |
||
HasTransport ( TransportProtocol protocol ) : bool | ||
LastErrorCode ( TransportProtocol protocol ) : ErrorCode | ||
LastErrorMessage ( TransportProtocol protocol ) : string | ||
Reconnect ( TransportProtocol protocol ) : bool | ||
Redirect ( TransportProtocol protocol, Fun.HostAddr addr, bool keep_session_id = false ) : bool | ||
RegisterHandler ( string type, MessageEventHandler handler ) : void | ||
RegisterHandlerWithProtocol ( string type, TransportProtocol protocol, MessageEventHandler handler ) : void | ||
SendMessage ( MessageType msg_type, object message, EncryptionType encryption = EncryptionType.kDefaultEncryption, TransportProtocol protocol = TransportProtocol.kDefault, string expected_reply_type = null, float expected_reply_time = 0f, TimeoutEventHandler onReplyMissed = null ) : void | ||
SendMessage ( MessageType msg_type, object message, string expected_reply_type, float expected_reply_time, TimeoutEventHandler onReplyMissed ) : void | ||
SendMessage ( string msg_type, object message, EncryptionType encryption = EncryptionType.kDefaultEncryption, TransportProtocol protocol = TransportProtocol.kDefault, string expected_reply_type = null, float expected_reply_time = 0f, TimeoutEventHandler onReplyMissed = null ) : void | ||
SendMessage ( string msg_type, object message, string expected_reply_type, float expected_reply_time, TimeoutEventHandler onReplyMissed ) : void | ||
SetDefaultProtocol ( TransportProtocol protocol ) : void | ||
SetMessageProtocol ( TransportProtocol protocol, string msg_type ) : void | ||
Start ( ) : void | ||
StartTransport ( TransportProtocol protocol ) : void | ||
Stop ( bool clear_all = true ) : void | ||
StopTransport ( TransportProtocol protocol ) : void | ||
Update ( ) : void |
Method | Description | |
---|---|---|
AddExpectedReply ( |
||
CheckTransportConnection ( TransportProtocol protocol ) : void | ||
CloseSession ( ) : void | ||
DeleteExpectedReply ( string reply_type ) : void | ||
FindOtherTransport ( TransportProtocol protocol ) : |
||
InitSession ( ) : void | ||
OnAckReceived ( |
||
OnClientPingMessage ( |
||
OnConnectTimeout ( TransportProtocol protocol ) : void | ||
OnMaintenanceMessage ( string msg_type, object body ) : void | ||
OnNewSession ( string msg_type, object body ) : void | ||
OnPingTimerEvent ( object param ) : void | ||
OnSeqReceived ( |
||
OnServerPingMessage ( |
||
OnSessionTimedout ( string msg_type, object body ) : void | ||
OnStoppedAllTransportCallback ( ) : void | ||
OnTransportConnectFailure ( TransportProtocol protocol ) : void | ||
OnTransportDisconnected ( TransportProtocol protocol ) : void | ||
OnTransportFailure ( TransportProtocol protocol, |
||
OnTransportReceived ( TransportProtocol protocol, string>.Dictionary |
||
OnTransportStarted ( TransportProtocol protocol ) : void | ||
OnTransportStopped ( TransportProtocol protocol ) : void | ||
OpenSession ( string session_id ) : void | ||
PrepareSession ( string session_id ) : void | ||
ProcessMessage ( TransportProtocol protocol, ArraySegment |
||
SendAck ( |
||
SendEmptyMessage ( TransportProtocol protocol ) : void | ||
SendPingMessage ( |
||
SendUnsentMessages ( ) : void | ||
SeqLess ( |
||
SetTransportStarted ( |
||
StartPingTimer ( |
||
StartTransport ( |
||
StopPingTimer ( |
||
StopTransport ( |
public AttachTransport ( |
||
transport | ||
return | void |
public Connect ( TransportProtocol protocol, FunEncoding type, Fun.HostAddr addr ) : bool | ||
protocol | TransportProtocol | |
type | FunEncoding | |
addr | Fun.HostAddr | |
return | bool |
public CreateFunMessage ( object msg, MessageType msg_type ) : FunMessage | ||
msg | object | |
msg_type | MessageType | |
return | FunMessage |
public DetachTransport ( TransportProtocol protocol ) : void | ||
protocol | TransportProtocol | |
return | void |
public FunapiNetwork ( bool session_reliability = false ) : UnityEngine | ||
session_reliability | bool | |
return | UnityEngine |
public GetDefaultProtocol ( ) : TransportProtocol | ||
return | TransportProtocol |
public GetEncoding ( TransportProtocol protocol ) : FunEncoding | ||
protocol | TransportProtocol | |
return | FunEncoding |
public GetMessage ( FunMessage msg, MessageType msg_type ) : object | ||
msg | FunMessage | |
msg_type | MessageType | |
return | object |
public GetMessageProtocol ( string msg_type ) : TransportProtocol | ||
msg_type | string | |
return | TransportProtocol |
public GetTransport ( TransportProtocol protocol ) : |
||
protocol | TransportProtocol | |
return |
public HasTransport ( TransportProtocol protocol ) : bool | ||
protocol | TransportProtocol | |
return | bool |
public LastErrorCode ( TransportProtocol protocol ) : ErrorCode | ||
protocol | TransportProtocol | |
return | ErrorCode |
public LastErrorMessage ( TransportProtocol protocol ) : string | ||
protocol | TransportProtocol | |
return | string |
public Reconnect ( TransportProtocol protocol ) : bool | ||
protocol | TransportProtocol | |
return | bool |
public Redirect ( TransportProtocol protocol, Fun.HostAddr addr, bool keep_session_id = false ) : bool | ||
protocol | TransportProtocol | |
addr | Fun.HostAddr | |
keep_session_id | bool | |
return | bool |
public RegisterHandler ( string type, MessageEventHandler handler ) : void | ||
type | string | |
handler | MessageEventHandler | |
return | void |
public RegisterHandlerWithProtocol ( string type, TransportProtocol protocol, MessageEventHandler handler ) : void | ||
type | string | |
protocol | TransportProtocol | |
handler | MessageEventHandler | |
return | void |
public SendMessage ( MessageType msg_type, object message, EncryptionType encryption = EncryptionType.kDefaultEncryption, TransportProtocol protocol = TransportProtocol.kDefault, string expected_reply_type = null, float expected_reply_time = 0f, TimeoutEventHandler onReplyMissed = null ) : void | ||
msg_type | MessageType | |
message | object | |
encryption | EncryptionType | |
protocol | TransportProtocol | |
expected_reply_type | string | |
expected_reply_time | float | |
onReplyMissed | TimeoutEventHandler | |
return | void |
public SendMessage ( MessageType msg_type, object message, string expected_reply_type, float expected_reply_time, TimeoutEventHandler onReplyMissed ) : void | ||
msg_type | MessageType | |
message | object | |
expected_reply_type | string | |
expected_reply_time | float | |
onReplyMissed | TimeoutEventHandler | |
return | void |
public SendMessage ( string msg_type, object message, EncryptionType encryption = EncryptionType.kDefaultEncryption, TransportProtocol protocol = TransportProtocol.kDefault, string expected_reply_type = null, float expected_reply_time = 0f, TimeoutEventHandler onReplyMissed = null ) : void | ||
msg_type | string | |
message | object | |
encryption | EncryptionType | |
protocol | TransportProtocol | |
expected_reply_type | string | |
expected_reply_time | float | |
onReplyMissed | TimeoutEventHandler | |
return | void |
public SendMessage ( string msg_type, object message, string expected_reply_type, float expected_reply_time, TimeoutEventHandler onReplyMissed ) : void | ||
msg_type | string | |
message | object | |
expected_reply_type | string | |
expected_reply_time | float | |
onReplyMissed | TimeoutEventHandler | |
return | void |
public SetDefaultProtocol ( TransportProtocol protocol ) : void | ||
protocol | TransportProtocol | |
return | void |
public SetMessageProtocol ( TransportProtocol protocol, string msg_type ) : void | ||
protocol | TransportProtocol | |
msg_type | string | |
return | void |
public StartTransport ( TransportProtocol protocol ) : void | ||
protocol | TransportProtocol | |
return | void |
public StopTransport ( TransportProtocol protocol ) : void | ||
protocol | TransportProtocol | |
return | void |