## foryoung365 / UVSocketC++MIT

Server Socket and Client Socket based on libuv.
Loading...
README.md 2.04 KB

#UVSocket

Server and Client socket based on libuv.

#Compile

premake5 vs2015


You need premake5 to compile this project. Run this from command line:

premake5 vs2015


or other visual studio version(use premake5 --help for more details). Open VSBuild/UVSocket.sln and compile both Debug and Release version. Then run the "Extract.bat" to extract all libraries and header files to "publish" directory under project root directory.

#Supported platform

Only Windows right now. But it should run well on Linux, but not be tested.

#Usage

Write your own class derived from IUVServerCallback or IUVClientCallback(decided by which socket do you need) in "UVSocketCallBack.h", and implement all interfaces.

You can take "TestClientSocket" and "TestServerSocket" for example.

#About Run Mode

Only sync mode supported right now, you MUST keep calling Run() in your own thread. The async mode will make people confused, so I temporarily remove it. I am trying to find a better way to implement it.