Package org.globus.net
Class DatagramSocketFactory.PrDatagramSocket
- java.lang.Object
-
- java.net.DatagramSocket
-
- org.globus.net.DatagramSocketFactory.PrDatagramSocket
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- DatagramSocketFactory
class DatagramSocketFactory.PrDatagramSocket extends java.net.DatagramSocket
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.DatagramSocketsocket
-
Constructor Summary
Constructors Constructor Description PrDatagramSocket(java.net.DatagramSocket socket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconnect(java.net.InetAddress address, int port)voiddisconnect()java.net.InetAddressgetInetAddress()java.net.InetAddressgetLocalAddress()intgetLocalPort()intgetPort()intgetReceiveBufferSize()intgetSendBufferSize()intgetSoTimeout()voidreceive(java.net.DatagramPacket p)voidsend(java.net.DatagramPacket p)voidsetReceiveBufferSize(int size)voidsetSendBufferSize(int size)voidsetSoTimeout(int timeout)
-
-
-
Method Detail
-
connect
public void connect(java.net.InetAddress address, int port)- Overrides:
connectin classjava.net.DatagramSocket
-
disconnect
public void disconnect()
- Overrides:
disconnectin classjava.net.DatagramSocket
-
getInetAddress
public java.net.InetAddress getInetAddress()
- Overrides:
getInetAddressin classjava.net.DatagramSocket
-
getPort
public int getPort()
- Overrides:
getPortin classjava.net.DatagramSocket
-
send
public void send(java.net.DatagramPacket p) throws java.io.IOException- Overrides:
sendin classjava.net.DatagramSocket- Throws:
java.io.IOException
-
receive
public void receive(java.net.DatagramPacket p) throws java.io.IOException- Overrides:
receivein classjava.net.DatagramSocket- Throws:
java.io.IOException
-
getLocalAddress
public java.net.InetAddress getLocalAddress()
- Overrides:
getLocalAddressin classjava.net.DatagramSocket
-
getLocalPort
public int getLocalPort()
- Overrides:
getLocalPortin classjava.net.DatagramSocket
-
setSoTimeout
public void setSoTimeout(int timeout) throws java.net.SocketException- Overrides:
setSoTimeoutin classjava.net.DatagramSocket- Throws:
java.net.SocketException
-
getSoTimeout
public int getSoTimeout() throws java.net.SocketException- Overrides:
getSoTimeoutin classjava.net.DatagramSocket- Throws:
java.net.SocketException
-
setSendBufferSize
public void setSendBufferSize(int size) throws java.net.SocketException- Overrides:
setSendBufferSizein classjava.net.DatagramSocket- Throws:
java.net.SocketException
-
getSendBufferSize
public int getSendBufferSize() throws java.net.SocketException- Overrides:
getSendBufferSizein classjava.net.DatagramSocket- Throws:
java.net.SocketException
-
setReceiveBufferSize
public void setReceiveBufferSize(int size) throws java.net.SocketException- Overrides:
setReceiveBufferSizein classjava.net.DatagramSocket- Throws:
java.net.SocketException
-
getReceiveBufferSize
public int getReceiveBufferSize() throws java.net.SocketException- Overrides:
getReceiveBufferSizein classjava.net.DatagramSocket- Throws:
java.net.SocketException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.net.DatagramSocket
-
-