micromed_io.tcp.get_tcp_header#

micromed_io.tcp.get_tcp_header(packet_type: MicromedPacketType, size: int) bytearray#

Build the Micromed TCP header

Parameters:
packet_typeMicromedPacketType

The packet type to be sent

sizeint

The size of the packet to be sent

Returns:
bytearray

The TCP header sent right before any packet