org.sapia.ubik.net.udp
Class UDPConnectionFactory
java.lang.Object
org.sapia.ubik.net.udp.UDPConnectionFactory
- All Implemented Interfaces:
- ConnectionFactory
public class UDPConnectionFactory
- extends java.lang.Object
- implements ConnectionFactory
- Author:
- Yanick Duchesne
16-Jun-2003
|
Constructor Summary |
UDPConnectionFactory(int bufSize,
int timeout)
Constructor for UDPConnectionFactory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDPConnectionFactory
public UDPConnectionFactory(int bufSize,
int timeout)
- Constructor for UDPConnectionFactory.
newConnection
public Connection newConnection(java.lang.String host,
int port)
throws java.io.IOException
- Description copied from interface:
ConnectionFactory
- Returns a client
Connection instance that connects to the
server at the given host and port.
- Specified by:
newConnection in interface ConnectionFactory
- Parameters:
host - the host to connect to.port - the port on which the server is listening at the given host.
- Throws:
java.io.IOException - if the connection instance could not be created.- See Also:
ConnectionFactory.newConnection(String, int)
newConnection
public UDPConnection newConnection(java.net.InetAddress addr,
int port)
throws java.io.IOException
- Throws:
java.io.IOException
newConnection
public UDPConnection newConnection(java.net.DatagramSocket localSocket,
java.net.DatagramPacket pack)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010 Sapia OSS. All Rights Reserved.