All Projects â†’ EricBatlle â†’ Simpleunitytcp

EricBatlle / Simpleunitytcp

Licence: mit
🖧 Simple Unity Project to show how TCP communication are builded in C# without multi-threading or Unity network (Unet) involved.

Programming Languages

csharp
926 projects

Projects that are alternatives of or similar to Simpleunitytcp

Networker
A simple to use TCP and UDP networking library for .NET. Compatible with Unity.
Stars: ✭ 408 (+1754.55%)
Mutual labels:  unity, unity3d, networking, tcp, tcp-server
Simplenet
An easy-to-use, event-driven, asynchronous network application framework compiled with Java 11.
Stars: ✭ 164 (+645.45%)
Mutual labels:  networking, tcp, tcp-server, tcp-client
tcp-net
Build tcp applications in a stable and elegant way
Stars: ✭ 42 (+90.91%)
Mutual labels:  tcp, tcp-server, tcp-client
network
exomia/network is a wrapper library around System.Socket for easy and fast TCP/UDP client & server communication.
Stars: ✭ 18 (-18.18%)
Mutual labels:  tcp, tcp-server, tcp-client
Com.unity.multiplayer.mlapi
A game networking framework built for the Unity Engine to abstract game networking concepts.
Stars: ✭ 781 (+3450%)
Mutual labels:  unity, unity3d, networking
QTcpSocket
A simple Qt client-server TCP architecture to transfer data between peers
Stars: ✭ 62 (+181.82%)
Mutual labels:  tcp, tcp-server, tcp-client
AsyncTcpClient
An asynchronous variant of TcpClient and TcpListener for .NET Standard.
Stars: ✭ 125 (+468.18%)
Mutual labels:  tcp, tcp-server, tcp-client
Socketify
Raw TCP and UDP Sockets API on Desktop Browsers
Stars: ✭ 67 (+204.55%)
Mutual labels:  tcp, tcp-server, tcp-client
Ignorance
Ignorance utilizes the power of ENet to provide a reliable UDP networking transport for Mirror Networking.
Stars: ✭ 158 (+618.18%)
Mutual labels:  unity, unity3d, networking
Hprose Nodejs
Hprose is a cross-language RPC. This project is Hprose 2.0 for Node.js
Stars: ✭ 297 (+1250%)
Mutual labels:  tcp, tcp-server, tcp-client
Hisocket
It is a lightweight client socket solution, you can used it in C# project or Unity3d
Stars: ✭ 275 (+1150%)
Mutual labels:  unity, unity3d, tcp
Game Networking Resources
A Curated List of Game Network Programming Resources
Stars: ✭ 4,208 (+19027.27%)
Mutual labels:  unity, unity3d, networking
tcp server client
A thin and simple C++ TCP client server
Stars: ✭ 124 (+463.64%)
Mutual labels:  tcp, tcp-server, tcp-client
Colyseus Unity3d
âš” Colyseus Multiplayer SDK for Unity
Stars: ✭ 251 (+1040.91%)
Mutual labels:  unity, unity3d, networking
SuperSimpleTcp
Simple wrapper for TCP client and server in C# with SSL support
Stars: ✭ 263 (+1095.45%)
Mutual labels:  tcp, tcp-server, tcp-client
Mirror
#1 Open Source Unity Networking Library
Stars: ✭ 2,905 (+13104.55%)
Mutual labels:  unity, networking, tcp
ctsTraffic
ctsTraffic is a highly scalable client/server networking tool giving detailed performance and reliability analytics
Stars: ✭ 125 (+468.18%)
Mutual labels:  tcp, tcp-server, tcp-client
Forgenetworkingremastered
In short, Forge Networking is a free and open source multiplayer game (multi-user) networking system that has a very good integration with the Unity game engine. You wanna make a multiplayer game or real time multi-user application? This is the library for you.
Stars: ✭ 1,338 (+5981.82%)
Mutual labels:  unity, unity3d, networking
Ecs
ECS for Unity with full game state automatic rollbacks
Stars: ✭ 151 (+586.36%)
Mutual labels:  unity, unity3d, networking
EasyFileTransfer
An easy way to transfer file with any size on network with tcp protocol.
Stars: ✭ 30 (+36.36%)
Mutual labels:  tcp, tcp-server, tcp-client

SimpleUnityTCP 🖧

Created by Eric Batlle Clavero

A simple demo-project to show how TCP communication works on Unity environment, builded with C# and using System.Net.Sockets.

The main porpouse of this repo is to show the TCP communication on runtime, but also to provide a pretty commented and clear code so everyone else that wants to implement that kind of communication will be able without wasting a lot of time.

Video-Example 📲

example_app gif

Donations are appreciated! 💸

Remember that are many ways to say thank you.

If this repository has been helpful remember to star it and consider buying me a coffee! 😀

Buy Me A Coffee

If you like my general work and contributions consider sponsoring me on Github.

But if you just want to donate straightforward, I also have PayPal.me.

How to Use 💻

If you only want to see the app working, just run the SimpleTCP.exe which is located on the build directory.

If you want to open the project, you will need to have Unity installed with the version 2017 or higher.

If you only want to scratch the code, either inside the unity project or simply dragging the .cs classes on your editor, you have to watch on to this classes, which are located on Assets:

  • Server.cs
  • Client.cs

More Explanations 📡

Note: Unity do not allow the save-use of Multi-Threading, so the application is using Co-routines instead.

The stablished communication and workflow stablished right now follows the next order:

  • Start the Server and let him waiting for client connections.
  • Start the Client and connect him to the server.
  • Server waits for client messages...
  • Client send the message Close to the server.
  • Server recives that Close message.
  • Server send a response to the client, sending the same message, Close.
  • Client recives the message, close the connection with the server and shuts down.
  • Server close the connection with the client.
  • Server shuts down
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].