https://github.com/sublee/unity-cosocket
Sockets for Unity3D coroutine
https://github.com/sublee/unity-cosocket
Last synced: 6 months ago
JSON representation
Sockets for Unity3D coroutine
- Host: GitHub
- URL: https://github.com/sublee/unity-cosocket
- Owner: sublee
- Created: 2013-03-09T18:25:58.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-10-30T07:41:56.000Z (over 11 years ago)
- Last Synced: 2024-04-29T00:11:09.067Z (about 2 years ago)
- Language: C#
- Size: 145 KB
- Stars: 19
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
unity-cosocket
==============
Sockets for Unity3D coroutine.
```c#
Cosocket sock = new Cosocket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
yield return StartCoroutine(sock.Connect(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 8999)));
yield return StartCoroutine(sock.Send(new ASCIIEncoding().GetBytes("Hello, world")));
```