java.net
Class DatagramSocket

java.lang.Object
  extended by java.net.DatagramSocket
Direct Known Subclasses:
MulticastSocket

public class DatagramSocket
extends Object


Constructor Summary
DatagramSocket()
           
DatagramSocket(int var0)
           
DatagramSocket(int var0, InetAddress var1)
           
 
Method Summary
 void close()
           
 void connect(InetAddress var0, int var1)
           
 void disconnect()
           
 InetAddress getInetAddress()
           
 InetAddress getLocalAddress()
           
 int getLocalPort()
           
 int getPort()
           
 int getReceiveBufferSize()
           
 int getSendBufferSize()
           
 int getSoTimeout()
           
 void receive(DatagramPacket var0)
           
 void send(DatagramPacket var0)
           
static void setDatagramSocketImplFactory(DatagramSocketImplFactory var0)
           
 void setReceiveBufferSize(int var0)
           
 void setSendBufferSize(int var0)
           
 void setSoTimeout(int var0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatagramSocket

public DatagramSocket()
               throws SocketException
Throws:
SocketException

DatagramSocket

public DatagramSocket(int var0)
               throws SocketException
Throws:
SocketException

DatagramSocket

public DatagramSocket(int var0,
                      InetAddress var1)
               throws SocketException
Throws:
SocketException
Method Detail

close

public void close()

connect

public void connect(InetAddress var0,
                    int var1)

disconnect

public void disconnect()

getInetAddress

public InetAddress getInetAddress()

getLocalAddress

public InetAddress getLocalAddress()

getLocalPort

public int getLocalPort()

getPort

public int getPort()

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws SocketException
Throws:
SocketException

getSendBufferSize

public int getSendBufferSize()
                      throws SocketException
Throws:
SocketException

getSoTimeout

public int getSoTimeout()
                 throws SocketException
Throws:
SocketException

receive

public void receive(DatagramPacket var0)
             throws IOException
Throws:
IOException

send

public void send(DatagramPacket var0)
          throws IOException
Throws:
IOException

setSendBufferSize

public void setSendBufferSize(int var0)
                       throws SocketException
Throws:
SocketException

setReceiveBufferSize

public void setReceiveBufferSize(int var0)
                          throws SocketException
Throws:
SocketException

setSoTimeout

public void setSoTimeout(int var0)
                  throws SocketException
Throws:
SocketException

setDatagramSocketImplFactory

public static void setDatagramSocketImplFactory(DatagramSocketImplFactory var0)
                                         throws IOException
Throws:
IOException


Copyright © 2006-2010 OSGi Alliance. All Rights Reserved.