Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rozek1997/air-bridge-server

Server written in C to receive files using websocket
https://github.com/rozek1997/air-bridge-server

c c-webserver-program websocket-server

Last synced: 2 days ago
JSON representation

Server written in C to receive files using websocket

Awesome Lists containing this project

README

        

# AirBridge server

This project consist of two repos

Another repo of client written in Java is available at
[AirBridge client](https://github.com/rozek1997/air-bridge-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`