Fix a few documentation issues. NFC.
This commit is contained in:
parent
a45b3d9eab
commit
ae17151f2a
|
@ -216,13 +216,13 @@ The host is assigned the hardware address `02-00-00-00-00-02` and IPv4 address `
|
||||||
Read its [source code](/examples/httpclient.rs), then run it as:
|
Read its [source code](/examples/httpclient.rs), then run it as:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cargo run --example client -- tap0 ADDRESS URL
|
cargo run --example httpclient -- tap0 ADDRESS URL
|
||||||
```
|
```
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cargo run --example client -- tap0 93.184.216.34 http://example.org/
|
cargo run --example httpclient -- tap0 93.184.216.34 http://example.org/
|
||||||
```
|
```
|
||||||
|
|
||||||
It connects to the given address (not a hostname) and URL, and prints any returned response data.
|
It connects to the given address (not a hostname) and URL, and prints any returned response data.
|
||||||
|
|
|
@ -10,6 +10,7 @@ use wire::{IpProtocol, IpRepr, IpAddress, IpEndpoint, TcpSeqNumber, TcpRepr, Tcp
|
||||||
use socket::{Socket, SocketMeta, SocketHandle};
|
use socket::{Socket, SocketMeta, SocketHandle};
|
||||||
use storage::{Assembler, RingBuffer};
|
use storage::{Assembler, RingBuffer};
|
||||||
|
|
||||||
|
/// A TCP socket ring buffer.
|
||||||
pub type SocketBuffer<'a> = RingBuffer<'a, u8>;
|
pub type SocketBuffer<'a> = RingBuffer<'a, u8>;
|
||||||
|
|
||||||
/// The state of a TCP socket, according to [RFC 793][rfc793].
|
/// The state of a TCP socket, according to [RFC 793][rfc793].
|
||||||
|
|
Loading…
Reference in New Issue