Server functionality for getting markers through sockets. Format of
incoming messages is "1", "00100", "000001", etc.