# Path: pypot/server/server.py
# class AbstractServer(object):
#     def __init__(self, robot, host, port):
#         self.restful_robot = RESTRobot(robot)
#         self.host, self.port = host, port
# 
#     def run(self):
#         raise NotImplementedError


import zmq
import json
import logging
from .server import AbstractServer



logger = logging.getLogger(__name__)


class ZMQRobotServer(AbstractServer):
    def __init__(self, robot, host, port):
        """ A ZMQServer allowing remote access of a robot instance.

        The server used the REQ/REP zmq pattern. You should always first send a request and then read the answer.

        """

# Path: pypot/server/server.py
# class AbstractServer(object):
#     def __init__(self, robot, host, port):
#         self.restful_robot = RESTRobot(robot)
#         self.host, self.port = host, port
# 
#     def run(self):
#         raise NotImplementedError


# Path: pypot/server/zmqserver.py
import zmq
import json
import logging
from .server import AbstractServer




logger = logging.getLogger(__name__)


class ZMQRobotServer(AbstractServer):
    def __init__(self, robot, host, port):
        """ A ZMQServer allowing remote access of a robot instance.

        The server used the REQ/REP zmq pattern. You should always first send a request and then read the answer.

        """

        AbstractServer.__init__(self, robot, host, port)