DefaultDatagramSocketFactory







DefaultDatagramSocketFactory (Commons Net 3.3 API)






JavaScript is disabled on your browser.








Overview
Package
Class
Use
Tree
Deprecated
Index
Help




Prev Class
Next Class


Frames
No Frames


All Classes







Summary: 
Nested | 
Field | 
Constr | 
Method


Detail: 
Field | 
Constr | 
Method








org.apache.commons.net
Class DefaultDatagramSocketFactory



java.lang.Object


org.apache.commons.net.DefaultDatagramSocketFactory







All Implemented Interfaces:
DatagramSocketFactory



public class DefaultDatagramSocketFactory
extends Object
implements DatagramSocketFactory
DefaultDatagramSocketFactory implements the DatagramSocketFactory interface by simply wrapping the java.net.DatagramSocket constructors. It is the default DatagramSocketFactory used by DatagramSocketClient implementations.
See Also:DatagramSocketFactory,
DatagramSocketClient,
DatagramSocketClient.setDatagramSocketFactory(org.apache.commons.net.DatagramSocketFactory)











Constructor Summary

Constructors 

Constructor and Description


DefaultDatagramSocketFactory() 









Method Summary

Methods 

Modifier and Type
Method and Description


DatagramSocket
createDatagramSocket()
Creates a DatagramSocket on the local host at the first available port.



DatagramSocket
createDatagramSocket(int port)
Creates a DatagramSocket on the local host at a specified port.



DatagramSocket
createDatagramSocket(int port,
InetAddress laddr)
Creates a DatagramSocket at the specified address on the local host at a specified port.







Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait














Constructor Detail





DefaultDatagramSocketFactory
public DefaultDatagramSocketFactory()









Method Detail





createDatagramSocket
public DatagramSocket createDatagramSocket()
throws SocketException
Creates a DatagramSocket on the local host at the first available port.

Specified by:
createDatagramSocket in interface DatagramSocketFactory
Throws:
SocketException - If the socket could not be created.







createDatagramSocket
public DatagramSocket createDatagramSocket(int port)
throws SocketException
Creates a DatagramSocket on the local host at a specified port.

Specified by:
createDatagramSocket in interface DatagramSocketFactory
Parameters:port - The port to use for the socket.
Throws:
SocketException - If the socket could not be created.







createDatagramSocket
public DatagramSocket createDatagramSocket(int port,
InetAddress laddr)
throws SocketException
Creates a DatagramSocket at the specified address on the local host at a specified port.

Specified by:
createDatagramSocket in interface DatagramSocketFactory
Parameters:port - The port to use for the socket.laddr - The local address to use.
Throws:
SocketException - If the socket could not be created.
















Overview
Package
Class
Use
Tree
Deprecated
Index
Help




Prev Class
Next Class


Frames
No Frames


All Classes







Summary: 
Nested | 
Field | 
Constr | 
Method


Detail: 
Field | 
Constr | 
Method






Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.




Wyszukiwarka

Podobne podstrony:
Default
DEFAULT2
default
DEFAULT1
Help default
DefaultListModel
function yp get default domain
default
defaul3t
defaultconstructible
DefaultHighlighter
DefaultTableModel
DefaultTableCellRenderer
default (2)
DefaultFocusTraversalPolicy

więcej podobnych podstron