Struct esp8266_wifi_serial::NetworkSession [−][src]
pub struct NetworkSession<Rx, Tx, C, const N: usize> where
Rx: Read<u8> + 'static,
Tx: Write<u8> + 'static,
C: SimpleClock, { /* fields omitted */ }
Expand description
A session with the typical network operations.
Implementations
impl<Rx, Tx, C, const N: usize> NetworkSession<Rx, Tx, C, N> where
Rx: Read<u8> + 'static,
Tx: Write<u8> + 'static,
C: SimpleClock,
impl<Rx, Tx, C, const N: usize> NetworkSession<Rx, Tx, C, N> where
Rx: Read<u8> + 'static,
Tx: Write<u8> + 'static,
C: SimpleClock,
Begins to listen to the incoming TCP connections on the specified port.
Establishes a TCP connection with the specified IP address, link identifier will be associated with the given IP address. Then it will be possible to send data using this link ID.
Non-blocking polling to get a new network event.
Sends data packet via the TCP socket with the link given identifier.
Notes
No more than 2048 bytes can be sent at a time.