tileserve: refactoring udpsocket part