Class DatagramSocket
java.lang.Object
java.net.DatagramSocket
- Direct Known Subclasses:
MulticastSocket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect(InetAddress var0, int var1) voidintintgetPort()intintintvoidreceive(DatagramPacket var0) voidsend(DatagramPacket var0) static voidvoidsetReceiveBufferSize(int var0) voidsetSendBufferSize(int var0) voidsetSoTimeout(int var0)
-
Constructor Details
-
DatagramSocket
- Throws:
SocketException
-
DatagramSocket
- Throws:
SocketException
-
DatagramSocket
- Throws:
SocketException
-
-
Method Details
-
close
public void close() -
connect
-
disconnect
public void disconnect() -
getInetAddress
-
getLocalAddress
-
getLocalPort
public int getLocalPort() -
getPort
public int getPort() -
getReceiveBufferSize
- Throws:
SocketException
-
getSendBufferSize
- Throws:
SocketException
-
getSoTimeout
- Throws:
SocketException
-
receive
- Throws:
IOException
-
send
- Throws:
IOException
-
setSendBufferSize
- Throws:
SocketException
-
setReceiveBufferSize
- Throws:
SocketException
-
setSoTimeout
- Throws:
SocketException
-
setDatagramSocketImplFactory
- Throws:
IOException
-