client::networking

Function connect_to_server

Source
pub fn connect_to_server(
    cli_args: &CliClientArgs,
) -> Result<TcpStream, FractalError>
Expand description

Connect to a server at the specified address.

§Arguments

  • address - Address

§Return

  • Result<TcpStream, FractalError> - A TcpStream if the connection was successful, or a FractalError if the connection failed.