C# Class Hugula.Net.LNet

Inheritance: UnityEngine.MonoBehaviour, IDisposable
显示文件 Open project: tenvick/hugula Class Usage Examples

Public Properties

Property Type Description
onAppErrorFn SLua.LuaFunction
onConnectionCloseFn SLua.LuaFunction
onConnectionFn SLua.LuaFunction
onConnectionTimeoutFn SLua.LuaFunction
onIntervalFn SLua.LuaFunction
onMessageReceiveFn SLua.LuaFunction
onReConnectFn SLua.LuaFunction
pingDelay float
timeoutMiliSecond int

Public Methods

Method Description
Awake ( ) : void
Close ( ) : void
Connect ( string host, int port ) : void
Dispose ( ) : void
New ( ) : LNet
OnDestroy ( ) : void
ReConnect ( ) : void
Receive ( ) : void
Send ( Msg msg ) : void
Send ( byte bytes ) : void
SendErro ( string type, string desc ) : void
Update ( ) : void

Private Methods

Method Description
OnConnected ( IAsyncResult rs ) : void
SendCallback ( IAsyncResult rs ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( string host, int port ) : void
host string
port int
return void

Dispose() public method

public Dispose ( ) : void
return void

New() public static method

public static New ( ) : LNet
return LNet

OnDestroy() public method

public OnDestroy ( ) : void
return void

ReConnect() public method

public ReConnect ( ) : void
return void

Receive() public method

public Receive ( ) : void
return void

Send() public method

public Send ( Msg msg ) : void
msg Msg
return void

Send() public method

public Send ( byte bytes ) : void
bytes byte
return void

SendErro() public method

public SendErro ( string type, string desc ) : void
type string
desc string
return void

Update() public method

public Update ( ) : void
return void

Property Details

onAppErrorFn public_oe property

public LuaFunction,SLua onAppErrorFn
return SLua.LuaFunction

onConnectionCloseFn public_oe property

public LuaFunction,SLua onConnectionCloseFn
return SLua.LuaFunction

onConnectionFn public_oe property

public LuaFunction,SLua onConnectionFn
return SLua.LuaFunction

onConnectionTimeoutFn public_oe property

public LuaFunction,SLua onConnectionTimeoutFn
return SLua.LuaFunction

onIntervalFn public_oe property

public LuaFunction,SLua onIntervalFn
return SLua.LuaFunction

onMessageReceiveFn public_oe property

public LuaFunction,SLua onMessageReceiveFn
return SLua.LuaFunction

onReConnectFn public_oe property

public LuaFunction,SLua onReConnectFn
return SLua.LuaFunction

pingDelay public_oe property

public float pingDelay
return float

timeoutMiliSecond public_oe property

public int timeoutMiliSecond
return int