Home
last modified time | relevance | path

Searched refs:StreamSocket (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Virtualization/libs/libforwarder/src/
Dstream.rs48 pub struct StreamSocket { struct
53 impl StreamSocket { impl
55 pub fn connect(sockaddr: &str) -> result::Result<StreamSocket, StreamSocketError> { in connect() argument
97 impl io::Read for StreamSocket { implementation
110 impl io::Write for StreamSocket { implementation
136 impl AsRawFd for StreamSocket { implementation
142 impl From<TcpStream> for StreamSocket { implementation
144 StreamSocket { fd: stream.into_raw_fd(), shut_down: false } in from()
148 impl From<UnixStream> for StreamSocket { implementation
150 StreamSocket { fd: stream.into_raw_fd(), shut_down: false } in from()
[all …]
Dforwarder.rs24 use crate::stream::StreamSocket;
60 local: StreamSocket,
61 remote: StreamSocket,
64 fn forward(from_stream: &mut StreamSocket, to_stream: &mut StreamSocket) -> Result<bool> { in forward() argument
79 pub fn new(local: StreamSocket, remote: StreamSocket) -> Self { in new() argument
98 pub fn local_stream(&self) -> &StreamSocket { in local_stream() argument
103 pub fn remote_stream(&self) -> &StreamSocket { in remote_stream() argument
/packages/modules/Virtualization/guest/forwarder_guest/src/
Dmain.rs25 use forwarder::stream::{StreamSocket, StreamSocketError};
59 fn run_forwarder(local_stream: StreamSocket, remote_stream: StreamSocket) -> Result<()> { in run_forwarder() argument
118 let local_stream = StreamSocket::connect(&args.local_sockaddr).map_err(Error::ConnectSocket)?; in main()
120 StreamSocket::connect(&args.remote_sockaddr).map_err(Error::ConnectSocket)?; in main()