pub fn new<A: ToSocketAddrs>(
		sam_addr: A,
		destination: &str,
		port: u16,
	) -> Result<StreamConnect, Error> {
		let session = Session::transient(sam_addr)?;
		Self::with_session(&session, destination, port)
	}
/// Create a new SAM client connection to the provided destination and port.
/// Also creates a new transient session to support the connection.
Create a new SAM client connection to the provided destination and port.
Also creates a new transient session to support the connection.
Create a new SAM client connection to the provided destination and port . Also creates a new transient session to support the connection .
pub fn new<A: ToSocketAddrs>(
		sam_addr: A,
		destination: &str,
		port: u16,
	) -> Result<StreamConnect, Error> {
		let session = Session::transient(sam_addr)?;
		Self::with_session(&session, destination, port)
	}
pub fn new < A : ToSocketAddrs > ( sam_addr : A , destination : & str , port : u16 , ) -> Result < StreamConnect , Error > { let session = Session :: transient ( sam_addr ) ? ; Self :: with_session ( & session , destination , port ) }
Create a new SAM client connection to the provided destination and port.
Create a new SAM client connection to the provided destination and port .
sam_addr
A
destination
&str
port
u16
sam_addr
A
destination
&str
port
u16