Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rozek1997/air-bridge-server
- Owner: rozek1997
- Created: 2019-04-28T23:53:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-17T21:21:48.000Z (almost 5 years ago)
- Last Synced: 2024-11-17T11:56:02.159Z (2 months ago)
- Topics: c, c-webserver-program, websocket-server
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 threadLimit 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`