Smoke server for dividing number into two factors.
- run
npm install
in root folder - run
npm install
in public folder
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.
First byte is always packet number.
Variables must be in order.
Variable char[] is null terminated string.
- Packet00
- Nothing
- Packet01
- server -> client
byte
: position //what part of number to crackbyte
: count //number of computers connectedchar[]
: number //number to crack
- client -> server
byte
: result //0 if not found, 1 if foundchar[]
: n1 //first factor, nothing if not foundchar[]
: n2 //second factor, nothing if not found
- Packet02
- Nothing yet, planning on stopping factorization if other client found factors