An open API service indexing awesome lists of open source software.

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

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")));
```