About
Introduction: MogreSocks is a C++/CLI Wrapper for OgreSocks use for MOGRE (Managed Ogre3d)
Status: Finished
Repository:Github Repository
Author: Yin Xiaoguang
Language: C++/CLI
Development Tool: Visual Studio 2008
.NET Framework: .NET Framework 3.5
Binary:this link
Usage
Initialise
Copy to clipboard
MogreSocksManager.Instance.Initialise();
Create MogreSocket Object
Copy to clipboard
MogreSocksTCPClient msocket = MogreSocksManager.Instance.CreateSocket();
Event Process
Copy to clipboard
ConnectListener connectlistener = new ConnectionListener(); connectListener.OnConnect += YourConnectEventHandler; mscocket.SetConnectionListener(connectlistener);
Dispose:
Copy to clipboard
MogreSocksManager.Instance.DeleteSocket(msocket); MogreSocksManager.Instance.Cleanup();