GithubHelp home page GithubHelp logo

csharp-tcp-server's Introduction

CSharp-Tcp-Server

  • Photon과 유사하게 동작하게 만들어본 TCP Socket Server

사용방법

  • dotnet run / debug project / build 세가지 방식 중 편한 방식으로 프로젝트 실행
  • ipaddress 에 3000 포트를 붙여 서버에 접속


  • DataFormat 클래스에 맞추어 데이터 생성 ( 서버와 클라간 데이터 송 수신에 사용되는 포맷 )

  • WebSocketController - SendPacket(byte eventCode, Dictionary<byte, object> param) -> 클라에 메시지를 보낼 때 사용
  • MessageManager - ProcessData(WebSocketController wsController, DataFormat dataFormat) -> 클라에서 온 데이터 처리를 할 때 사용
    • 클라에서 데이터를 보내면 자동으로 넘어옴
    • 포맷은 DataFormat에 맞추어야 함
    • 변수명 주의할 것

C#으로 만든 Tcp server (ms 가이드 참고)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.