internal static _OnConnect OnConnect() { if (_OnConnectFunc == null) { _OnConnectFunc = (_OnConnect)Marshal.GetDelegateForFunctionPointer( NativeLibrary.GetExport( Torque3D.Torque3DLibHandle, "cbAIClient_onConnect"), typeof(_OnConnect)); } return(_OnConnectFunc); }
internal static _OnConnect OnConnect() { if (_OnConnectFunc == null) { _OnConnectFunc = (_OnConnect)Marshal.GetDelegateForFunctionPointer( Torque3D.DllLoadUtils.GetProcAddress( Torque3D.Torque3DLibHandle, "cbAIClient_onConnect"), typeof(_OnConnect)); } return(_OnConnectFunc); }
public Gateway_Server() { var port = System.Configuration.ConfigurationManager.AppSettings["RAT_Gateway_Listen_Port"]; if(string.IsNullOrWhiteSpace(port)) port = "5939"; OnConnect_CallBack = OnConnect; OnDisconnect_CallBack = OnDisconnect; _Server = Create_Server(OnConnect_CallBack, OnDisconnect_CallBack); Listen(_Server, "", port); }
public Gateway_Server() { var port = System.Configuration.ConfigurationManager.AppSettings["RAT_Gateway_Listen_Port"]; if (string.IsNullOrWhiteSpace(port)) { port = "5939"; } OnConnect_CallBack = OnConnect; OnDisconnect_CallBack = OnDisconnect; _Server = Create_Server(OnConnect_CallBack, OnDisconnect_CallBack); Listen(_Server, "", port); }
static extern IntPtr Create_Server(_OnConnect onconnect, _OnDisconnect ondisconnect);