This project consist of two repos
Another repo of client written in Java is available at
AirBridge client
Project aim was to make client - server model using two programming languages.
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!
$ sudo apt install libjson-c-dev
port="chosen port"
$ gcc -o "name" -std=gnu99 -Wall -lpthread -ljson-c