de::gsi::bel::xfer::Connection Class Reference

List of all members.

Public Member Functions

Socket getSocket ()
String getHost ()
int getPort ()
void close ()
void finalize ()

Package Functions

 Connection (String host, InetAddress adr, int port, int timeout) throws IOException

Detailed Description

Author:
huhmann This is the class for a socket based tcp/ip connection to some hostname and port.


Constructor & Destructor Documentation

de::gsi::bel::xfer::Connection::Connection ( String  host,
InetAddress  adr,
int  port,
int  timeout 
) throws IOException [inline, package]

Constructor with connection parameters

Parameters:
host optional name of host to connect to
adr if name not given the ip adress of the host must be given here
port the serverside portnumber you want to connect to
timeout timeoout in milli-seconds we wait for connection
Exceptions:
IOException 


Member Function Documentation

void de::gsi::bel::xfer::Connection::close (  )  [inline]

close connection.

void de::gsi::bel::xfer::Connection::finalize (  )  [inline]

we close explicitly the connection when object is desctructed

String de::gsi::bel::xfer::Connection::getHost (  )  [inline]

Returns:
Host name of connection

int de::gsi::bel::xfer::Connection::getPort (  )  [inline]

Returns:
port of connection

Socket de::gsi::bel::xfer::Connection::getSocket (  )  [inline]

Returns:
Socket of connection


The documentation for this class was generated from the following file:
Generated on 4 Mar 2014 for xferjava by  doxygen 1.4.7