https://github.com/dudoslav/smoke_server
https://github.com/dudoslav/smoke_server
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dudoslav/smoke_server
- Owner: dudoslav
- License: mit
- Created: 2016-07-07T19:01:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-08T11:47:49.000Z (almost 9 years ago)
- Last Synced: 2024-12-27T03:20:20.235Z (5 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Smoke server
Smoke server for dividing number into two factors.
## Build
1. run `npm install` in root folder
2. run `npm install` in public folder## Run
To start server simply run `npm start` in root folder.
Server web interface is running on port 9669.
To access it try localhost:9669 in your browser.
Server cloud is running on port 9666.
This port is used to connect clients to.
## Protocol
First byte is always packet number.
Variables must be in order.
Variable char[] is null terminated string.
0. **Packet00**
* Nothing
1. **Packet01**
* server -> client
* `byte`: position //what part of number to crack
* `byte`: count //number of computers connected
* `char[]`: number //number to crack
* client -> server
* `byte`: result //0 if not found, 1 if found
* `char[]`: n1 //first factor, nothing if not found
* `char[]`: n2 //second factor, nothing if not found
2. **Packet02**
* Nothing yet, planning on stopping factorization if other client found factors