Skip to main content

dispatch_loop

Function dispatch_loop 

Source
pub async fn dispatch_loop<T>(
    transport: T,
    _pdu_size: u16,
    store: DataStore,
) -> Result<()>
where T: AsyncRead + AsyncWrite + Unpin,
Expand description

Run the S7 request dispatch loop over an established transport.

Reads COTP Data PDUs, decodes S7 requests, executes them against store, and sends S7 AckData responses. Runs until the transport closes (EOF) or a fatal I/O error occurs.