def send(self, msg, checkAuth=1, timeout=0): """All messages are first packed into RAMP data structures and then delimited.""" # if checkAuth and not self.authenticated: # self.authenticate(timeout=self.timeout) PickleSocket.send(self, msg, timeout=timeout)
def nextMsg(self, checkAuth=1, timeout=0): """Convenience function that handles any buffering required to read the next full message. This is overloaded so we can always unpickle the message.""" # if checkAuth and not self.authenticated: # self.authenticate(timeout=self.timeout) # get the next message delimited by the delim character return PickleSocket.nextMsg(self, timeout=timeout)