Skip to content

og-yona/windows-unix-server-client-game-application-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Very simple C++ example application using TCP sockets for creating server and clients. Compiling and working on both Windows and Unix.

In addition to just basic socket classes, there are simple "GameServer" and "GameClient" class implementations.

GameServer is able to accept new clients, and keeps pinging on active clients.

GameClient connects to the server, and starts replying server's pings.

In main.cpp function user is asked if he wants to start the application as:

  • server
  • client
  • or run server in a separate thread and connect to it as a client in another. (local "singleplayer")

About

Simple example ("game") application using TCP for server and client sockets and sending ping packets between them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published