chronoxor / CppServer

Ultra fast and low latency asynchronous socket server & client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
MIT License
1.43k stars 284 forks source link

How to establish communication between servers? #54

Closed ba1to closed 3 years ago

ba1to commented 3 years ago

Two or more servers are running. How to establish communication between them?

chronoxor commented 3 years ago

One of servers should be a main TcpServer, the second one should connect as a client. Connection will have duplex communication, each peer can send and receive data. Then you should implement upper level communication protocol.

The easiest way is to make http/https server & client. Please see examples in the repo.