Skip to content

rozek1997/air-bridge-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AirBridge server

This project consist of two repos
Another repo of client written in Java is available at AirBridge client

Project aim

Project aim was to make client - server model using two programming languages.

Short description

For this purpose two application, client and server, in Java and C respectively have been written and connected via websocket.
Server listing on the port define in application.properties file. Main thread is constantly listening for a new connection request. If request appear then server accept new connection, create new thread for this connection and pass socket descriptor to the newly created thread. This thread, receive file and save it under uniq name. Then server close connection and kill thread

Limit of simultaneous working thread is 60!

Compiling

Before using downolad library json-c or use command

$ sudo apt install libjson-c-dev

Property file must contain field

port="chosen port"

Compilation

$ gcc -o "name" -std=gnu99 -Wall -lpthread -ljson-c

About

Server written in C to receive files using websocket

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages