Skip to content

That's a basic implementation of TCP server-client model written in C.

Notifications You must be signed in to change notification settings

mucozcan/TCP-Server-Client-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCP Socket Application

These are the multithreaded TCP server and client applications written in C for Linux environment. Programs support authentication and message encryption(base64). When connection between server and client is established, send and receive functions run on different thread so main loop keeps running for new connections.

How to compile?

While compiling, you need to specify the libraries that used for multithreading and cryptography.

$ gcc ChatServer.c -o ChatServer -lpthread -lssl -lcrypto
$ gcc ChatClient.c -o ChatClient -lpthread -lssl -lcrypto

How to use?

$ ./ChatServer [Port Number]

In another terminal:

$ ./ChatClient [Port Number] [username] [password]

If your username and password didn't defined in "login.txt", you won't be able to connect to server. 1 2 3 4

For any questions, you can mail me: mmozcan4@gmail.com.

About

That's a basic implementation of TCP server-client model written in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages