mxcubecore.Command.exporter.StandardClient#
ProtocolError and StandardClient implementation
Functions
Empty buffer |
Classes
|
Protocol |
|
Standard JLib client |
Exceptions
Protype |
|
Protype |
|
Protype |
- exception mxcubecore.Command.exporter.StandardClient.ProtocolError[source]#
Bases:
Exception
Protype
- class mxcubecore.Command.exporter.StandardClient.StandardClient(server_ip, server_port, protocol, timeout, retries)[source]#
Bases:
object
Standard JLib client
- send(cmd)[source]#
Send command. :param cmd: command :type cmd: str
- Returns:
reply form the socket
- Return type:
(str)
- Raises:
- mxcubecore.Command.exporter.StandardClient.encode(self, /, encoding='utf-8', errors='strict')#
Encode the string using the codec registered for encoding.
- encoding
The encoding in which to encode the string.
- errors
The error handling scheme to use for encoding errors. The default is ‘strict’ meaning that encoding errors raise a UnicodeEncodeError. Other possible values are ‘ignore’, ‘replace’ and ‘xmlcharrefreplace’ as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.