odpy.test_ioserv

(C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt AUTHOR : Bert DATE : Jan 2019

Module Summary

Provides a test server for binary data transfer via stdin and stdout

The client has to put: - a 4-byte int holding the number of values - a block of floats Then the script will return: - the number of returned vals (always 2) - a block of floats (the avg and std of the values passed) This stops when the input nrvals < 0

Module Contents

Functions

dbg_pr(what, val)

put_to_output(what)

get_from_input(nr)

mk_int_bytes(ival)

get_int_from_bytes(data_read)

Attributes

inpstrm

outstrm

outvals

data_read

odpy.test_ioserv.inpstrm
odpy.test_ioserv.outstrm
odpy.test_ioserv.dbg_pr(what, val)
odpy.test_ioserv.put_to_output(what)
odpy.test_ioserv.get_from_input(nr)
odpy.test_ioserv.mk_int_bytes(ival)
odpy.test_ioserv.get_int_from_bytes(data_read)
odpy.test_ioserv.outvals
odpy.test_ioserv.data_read