1 16 package org.apache.commons.net; 17 18 import java.net.DatagramSocket ; 19 import java.net.InetAddress ; 20 import java.net.SocketException ; 21 22 36 37 public interface DatagramSocketFactory 38 { 39 40 45 public DatagramSocket createDatagramSocket() throws SocketException ; 46 47 53 public DatagramSocket createDatagramSocket(int port) throws SocketException ; 54 55 63 public DatagramSocket createDatagramSocket(int port, InetAddress laddr) 64 throws SocketException ; 65 } 66 | Popular Tags |