Skip to content

Instantly share code, notes, and snippets.

View altafc22's full-sized avatar

Altaf Razzaque altafc22

View GitHub Profile
@altafc22
altafc22 / TCPTestClient.cs
Created September 4, 2019 11:41 — forked from danielbierwirth/TCPTestClient.cs
TCP Client-Server Connection Example | Unity | C# | Bidirectional communication sample: Client can connect to server; Client can send and receive messages: Server accepts clients; Server reads client messages; Server sends messages to client
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UnityEngine;
public class TCPTestClient : MonoBehaviour {
#region private members