All Projects → MikeJinhua → Unitysocketprotobuf3demo

MikeJinhua / Unitysocketprotobuf3demo

Licence: mit
主要实现了用Unity对接了Leaf服务器。其次带了些小工具。

Programming Languages

golang
3204 projects

Projects that are alternatives of or similar to Unitysocketprotobuf3demo

Nettychat
基于Netty+TCP+Protobuf实现的Android IM库,包含Protobuf序列化、TCP拆包与粘包、长连接握手认证、心跳机制、断线重连机制、消息重发机制、读写超时机制、离线消息、线程池等功能。
Stars: ✭ 1,979 (+711.07%)
Mutual labels:  protobuf, tcp, socket
Shineframe
高性能超轻量级C++开发库及服务器编程框架
Stars: ✭ 274 (+12.3%)
Mutual labels:  protobuf, mysql, tcp
Hisocket
It is a lightweight client socket solution, you can used it in C# project or Unity3d
Stars: ✭ 275 (+12.7%)
Mutual labels:  unity, tcp, socket
Kalm.js
The socket manager
Stars: ✭ 155 (-36.48%)
Mutual labels:  tcp, socket
Jstp
Fast RPC for browser and Node.js based on TCP, WebSocket, and MDSF
Stars: ✭ 132 (-45.9%)
Mutual labels:  tcp, socket
Owasp Mth3l3m3nt Framework
OWASP Mth3l3m3nt Framework is a penetration testing aiding tool and exploitation framework. It fosters a principle of attack the web using the web as well as pentest on the go through its responsive interface.
Stars: ✭ 139 (-43.03%)
Mutual labels:  mysql, socket
Go Netstat
A netstat implementation written in Go
Stars: ✭ 121 (-50.41%)
Mutual labels:  tcp, socket
Iot Dc3
IOT DC3 is an open source, distributed Internet of Things (IOT) platform based on Spring Cloud. It is used for rapid development of IOT projects and management of IOT devices. It is a set of solutions for IOT system.
Stars: ✭ 195 (-20.08%)
Mutual labels:  tcp, socket
Unitywebsocket
🐳 The Best Unity WebSocket Plugin for All Platforms.
Stars: ✭ 191 (-21.72%)
Mutual labels:  unity, socket
Zserver4d
ZServer4D 是一套从商业项目剥离而出的云服务器中间件,可以承载百万级的分布式负载服务,并且支持IoT及内网穿透
Stars: ✭ 199 (-18.44%)
Mutual labels:  tcp, socket
Ohsce
PHP HI-REL SOCKET TCP/UDP/ICMP/Serial .高可靠性PHP通信&控制框架SOCKET-TCP/UDP/ICMP/硬件Serial-RS232/RS422/RS485 AND MORE!
Stars: ✭ 206 (-15.57%)
Mutual labels:  tcp, socket
Socketpushclient
最近项目中要求做推送,基于内网的。由于工期不是很紧,需求不是很严格,所以放弃了使用三方的推送框架,基于Socket自己写了消息推送功能(服务端+android端)。服务器端使用java,客户端使用Android。本人是做Android开发的,所以demo重点介绍客户端的一些代码,包括Socket的TCP长连接及发消息,Service如何不被轻易杀死,通过aidl实现界面实时与Service的通信,可以在界面上控制Socket的连接与断开以及发消息,并采用了Parcelable对象实现aidl传参
Stars: ✭ 129 (-47.13%)
Mutual labels:  tcp, socket
Async Sockets Cpp
Simple thread-based asynchronous TCP & UDP Socket classes in C++.
Stars: ✭ 127 (-47.95%)
Mutual labels:  tcp, socket
Oksocket
An blocking socket client for Android applications.
Stars: ✭ 2,359 (+866.8%)
Mutual labels:  tcp, socket
Tcpprobe
Modern TCP tool and service for network performance observability.
Stars: ✭ 207 (-15.16%)
Mutual labels:  tcp, socket
Socket
Non-blocking socket and TLS functionality for PHP based on Amp.
Stars: ✭ 122 (-50%)
Mutual labels:  tcp, socket
Istio Micro
istio 微服务示例代码 grpc+protobuf+echo+websocket+mysql+redis+kafka+docker-compose
Stars: ✭ 194 (-20.49%)
Mutual labels:  protobuf, mysql
Simplenetwork
simple TCP server / client C++ linux socket
Stars: ✭ 225 (-7.79%)
Mutual labels:  tcp, socket
Goproxy
🔥 Proxy is a high performance HTTP(S) proxies, SOCKS5 proxies,WEBSOCKET, TCP, UDP proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxy是golang实现的高性能http,https,websocket,tcp,socks5代理服务器,支持内网穿透,链式代理,通讯加密,智能HTTP,SOCKS5代理,黑白名单,限速,限流量,限连接数,跨平台,KCP支持,认证API。
Stars: ✭ 11,334 (+4545.08%)
Mutual labels:  tcp, socket
Tcpdog
eBPF based TCP observability.
Stars: ✭ 119 (-51.23%)
Mutual labels:  tcp, socket

UnitySocketPtotobuf3Demo

提供一套基础的游戏框架。这套框架不准备支持大型MMORPG。 供大家学习网络基础,或者中小型团队或者个人开发者可以方便使用的基础框架。可以很快速的开发卡牌,棋牌等开房间,进副本战斗的游戏。 以TCP为例,websocket同理。 用到的开发语言

1,golang开发服务器。

2,C#开发客户端,用unity。

3,python3 开发工具。

服务器框架 https://github.com/name5566/leaf 先要看leaf wiki里面go中使用protobuf的说明,尤其这个要安装go get github.com/golang/protobuf/protoc-gen-go

主要功能:

1.实现了做手游基础网络通讯。一套.proto配置,一键自动生成服务器客户端消息,两边id自动保证一致,上层调用只管new 出消息类交给网络层,收消息注册用消息类名来注册,屏蔽掉了底层id的转换过程。

2.消息工具已经完成。

3.配表工具基础功能已经完成。一键自动把excel文件拆开成服务器配置和客户端配置,并且生成两边配表代码,游戏启动时候自动加载并且解析配置数据。

4.db可以用gorm,很方便。 gorm多说几句,本来想用gorm自动级联跨表查询和保存,结果发现各种问题各种不习惯,最后还是决定,只用orm做基础的结构体和db table的映射,复合结构还是自己写函数处理下比较和自己习惯。 demo里面数据库名字是poker,可自行修改或者注释掉gorm。 有个demo文件在UnitySocketProtobuf3Demo\Server\src\server\testgorm.go 实现基本的代码类自动生成数据结构,程序方便用的查询接口,保存和替换数据等。 如果不想用mysql 可以去掉mysql/mysql.go文件和相关调用,不影响demo运行。

消息批处理在这里UnitySocketProtobuf3Demo\Tools\GenProto.bat

消息配置文件在这里UnitySocketProtobuf3Demo\Tools\Proto\src\*

配表批处理在这里UnitySocketProtobuf3Demo\Tools\GenTableData.bat

配表文件在这里UnitySocketProtobuf3Demo\Tools\TableData\*

消息工具和配表工具,安装说明在这里UnitySocketProtobuf3Demo/Tools/工具安装说明.txt

推荐编辑器:Goland ,参考goland_cfg.png

用到的几个软件:

1.Unity2017。

2.Protobuf3。

3.Leaf。


目前为止主要功能该有的应该都有了,应该可以满足个人开发者或者小团队用了。

推荐个便宜的VPS给大家用https://www.vultr.com/?ref=6878962 $3.5一个月LosAngeles比较快,如果支持IP6那么可以$2.5一个月了。LA,LD比较快些,可以用的IP也比较多。

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].