obspy.clients.seedlink.client.seedlinkconnection.SeedLinkConnection.send_data
- SeedLinkConnection.send_data(sendbytes, code, resplen)[source]
Send bytes to the server. This is only designed for small pieces of data, specifically for when the server responses to commands.
- Parameters:
sendbytes – bytes to send.
code – a string to include in error messages for identification.
resplen – if > 0 then read up to resplen response bytes after sending.
- Returns:
the response bytes or null if no response requested.
- Raises:
SeedLinkException – on error or no or bad response from server.
IOError – if an I/O error occurs.