Trait libmodbus_rs::ModbusTCP [] [src]

pub trait ModbusTCP {
    fn new_tcp(ip: &str, port: i32) -> Result<Modbus, Error>;
fn tcp_accept(&mut self, socket: &mut i32) -> Result<i32, Error>;
fn tcp_listen(&mut self, num_connection: i32) -> Result<i32, Error>; }

The TCP backend implements a Modbus variant used for communications over TCP/IPv4 networks. It does not require a checksum calculation as lower layer takes care of the same.

Required Methods

Implementors