コード例 #1
0
ファイル: AIClient.cs プロジェクト: lukaspj/T3DSharp
            internal static _OnConnect OnConnect()
            {
                if (_OnConnectFunc == null)
                {
                    _OnConnectFunc =
                        (_OnConnect)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "cbAIClient_onConnect"), typeof(_OnConnect));
                }

                return(_OnConnectFunc);
            }
コード例 #2
0
ファイル: AIClient.cs プロジェクト: lukaspj/T3DSharp-Book
            internal static _OnConnect OnConnect()
            {
                if (_OnConnectFunc == null)
                {
                    _OnConnectFunc =
                        (_OnConnect)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "cbAIClient_onConnect"), typeof(_OnConnect));
                }

                return(_OnConnectFunc);
            }
コード例 #3
0
        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);

        }
コード例 #4
0
        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);
        }
コード例 #5
0
 static extern IntPtr Create_Server(_OnConnect onconnect, _OnDisconnect ondisconnect);
コード例 #6
0
 static extern IntPtr Create_Server(_OnConnect onconnect, _OnDisconnect ondisconnect);