Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.08 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.08 KB

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