Class OutgoingConnection

public class OutgoingConnection

Title:

Description:Class for outgoing connections on the servent. Creates a socket on the given IP address and port, and provides incoming and outgoing streams

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
Ravi Kosuri
Constructor Detail

OutgoingConnection

public OutgoingConnection(java.lang.String ip,
                          int port)
Create a connection to given ip and port
Parameters:
ip -
port -
Throws:
java.lang.Exception -

Method Detail

getInputStream

public java.io.InputStream getInputStream()
return input stream.
Returns:

getOutputStream

public java.io.OutputStream getOutputStream()
return output stream
Returns:

close

public void close()
close the socket
Throws:
IOException -