GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
联系方式: QQ:564628276 邮箱:564628276@qq.com 微信:sylar-yin QQ群:8151915(sylar技术群) 个人主页:www.sylar.top github:https://github.com/sylar-yin/sylar 空文件 简介 C++高性能分布式服务器框架,webserver,websocket server,自定义tcp_server(包含日志模块,配置模块,线程模块,协程模块,协程调度模块,io协程调...
WebsocketsSimple provides an easy-to-use and customizable Websocket Server and Websocket Client. The server is created using a TcpListener and upgrades a successful connection to a WebSocket. The server and client can be used for non-SSL or SSL connectio
c++版本:evpp/TcpServer_test.cpp #include"TcpServer.h"usingnamespacehv;intmain(){intport =1234; TcpServer srv;intlistenfd = srv.createsocket(port);if(listenfd <0) {return-1; }printf("server listen on port %d, listenfd=%d ...\n", port, listenfd); ...
Create a Socket server Run the sample client and server See also Before you can use a socket to communicate with remote devices, the socket must be initialized with protocol and network address information. The constructor for theSocketclass has parameters that specify the address family, socket ...
With theendPointobject created, create a client socket to connect to the server. Once the socket is connected, it can send and receive data from the server socket connection. C# usingSocket client =new( ipEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);awaitclient.ConnectAsync(ipEndPo...
根据操作系统类型下载对应的可执行文件:https://github.com/fatedier/frp/releases,将其中的 frpc 拷贝到内网服务所在的机器上,将 frps 拷贝到具有公网 IP 的机器上,放置在任意目录。 编写配置文件,先通过 ./frps -c ./frps.ini 启动服务端,再通过 ./frpc -c ./frpc.ini 启动客户端。 2.配置文件 相关文档...
A TCP server that supports multiple clients. Contribute to Guozhanxin/tcpserver development by creating an account on GitHub.
packagemainimport"github.com/firstrow/tcp_server"funcmain() {server:=tcp_server.New("localhost:9999")server.OnNewClient(func(c*tcp_server.Client) {// new client connected// lets send some messagec.Send("Hello") })server.OnNewMessage(func(c*tcp_server.Client,messagestring) {// new messag...