Struct miow::net::AcceptAddrsBuf
[−]
[src]
pub struct AcceptAddrsBuf { // some fields omitted }
A type to represent a buffer in which an accepted socket's address will be stored.
This type is used with the accept_overlapped
method on the
TcpListenerExt
trait to provide space for the overlapped I/O operation to
fill in the socket addresses upon completion.
Methods
impl AcceptAddrsBuf
[src]
fn new() -> AcceptAddrsBuf
Creates a new blank buffer ready to be passed to a call to
accept_overlapped
.
fn parse(&self, socket: &TcpListener) -> Result<AcceptAddrs>
Parses the data contained in this address buffer, returning the parsed result if successful.
This function can be called after a call to accept_overlapped
has
succeeded to parse out the data that was written in.