java.net
Class DatagramSocket
java.lang.Object
java.net.DatagramSocket
- Direct Known Subclasses:
- MulticastSocket
public class DatagramSocket
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DatagramSocket
protected DatagramSocket(DatagramSocketImpl var0)
DatagramSocket
public DatagramSocket(SocketAddress var0)
throws SocketException
- Throws:
SocketException
bind
public void bind(SocketAddress var0)
throws SocketException
- Throws:
SocketException
close
public void close()
connect
public void connect(InetAddress var0,
int var1)
connect
public void connect(SocketAddress var0)
throws SocketException
- Throws:
SocketException
disconnect
public void disconnect()
getBroadcast
public boolean getBroadcast()
throws SocketException
- Throws:
SocketException
getInetAddress
public InetAddress getInetAddress()
getLocalAddress
public InetAddress getLocalAddress()
getLocalPort
public int getLocalPort()
getLocalSocketAddress
public SocketAddress getLocalSocketAddress()
getPort
public int getPort()
getReceiveBufferSize
public int getReceiveBufferSize()
throws SocketException
- Throws:
SocketException
getRemoteSocketAddress
public SocketAddress getRemoteSocketAddress()
getReuseAddress
public boolean getReuseAddress()
throws SocketException
- Throws:
SocketException
getSendBufferSize
public int getSendBufferSize()
throws SocketException
- Throws:
SocketException
getSoTimeout
public int getSoTimeout()
throws SocketException
- Throws:
SocketException
getTrafficClass
public int getTrafficClass()
throws SocketException
- Throws:
SocketException
isBound
public boolean isBound()
isClosed
public boolean isClosed()
isConnected
public boolean isConnected()
receive
public void receive(DatagramPacket var0)
throws IOException
- Throws:
IOException
send
public void send(DatagramPacket var0)
throws IOException
- Throws:
IOException
setBroadcast
public void setBroadcast(boolean var0)
throws SocketException
- Throws:
SocketException
setDatagramSocketImplFactory
public static void setDatagramSocketImplFactory(DatagramSocketImplFactory var0)
throws IOException
- Throws:
IOException
setReceiveBufferSize
public void setReceiveBufferSize(int var0)
throws SocketException
- Throws:
SocketException
setReuseAddress
public void setReuseAddress(boolean var0)
throws SocketException
- Throws:
SocketException
setSendBufferSize
public void setSendBufferSize(int var0)
throws SocketException
- Throws:
SocketException
setSoTimeout
public void setSoTimeout(int var0)
throws SocketException
- Throws:
SocketException
setTrafficClass
public void setTrafficClass(int var0)
throws SocketException
- Throws:
SocketException