Stacksrv is an implementation of a stack which works through TCP and meets the following requirements:
- stack should have
POPandPUSHoperations POPshould block until stack has data- stack should work through TCP with protocol:
- first bit of an incoming message determines the command (
0forPOPand1forPUSH) - next
7bits determines size of a payload (forPUSHonly) - following bytes is a payload.
- first bit of an incoming message determines the command (