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 |
de::gsi::bel::xfer::Connection::Connection | ( | String | host, | |
InetAddress | adr, | |||
int | port, | |||
int | timeout | |||
) | throws IOException [inline, package] |
Constructor with connection 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 |
IOException |
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] |
int de::gsi::bel::xfer::Connection::getPort | ( | ) | [inline] |
Socket de::gsi::bel::xfer::Connection::getSocket | ( | ) | [inline] |