Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

SuperSocketClient.U3D

Integration SuperSocket.ClientEngine to Unity3D.
Make some samples.
Passed on Unity3D 5.4.2f2

Reference (Directory - Library with Address)

Usage

  • Checkout the repository.
  • Copy directory "SuperSocket" to Unity3D "Assets" directory.
  • Add "NO_SPINWAIT_CLASSS" to scripting defines symbols in PlayerSettings, for Unity3D dose not support C# 6 features.
  • In SuperSocketClientTest.cs , modify the target address to your own server address
            mClient.BeginConnect(new DnsEndPoint("172.17.99.3", 10009));
  • Create a new scene, and a GameObject with component "SuperSocketClientTest" attached.
  • Run, there will be a Button on the top-left of the screen, press to test TCP/IP connection.
  • In this case, a FixedHeaderReceiveFilter was defined. The first 4 bytes in binary steam indicate the length of the whole data package.

About

Integration SuperSocket.ClientEngine to Unity3D with source code.Passed on Unity3D 5.4.2f2.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages