'Set the server communication port.'

def set_port(self, port):

    try:
        int(port)
    except ValueError:
        raise ValueError('Port    must    be    integer')
    self._port = six.text_type(port)
    self._refresh_conn = True
