KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > net > DatagramPacket

java.net
Class DatagramPacket

java.lang.Object
  extended by java.net.DatagramPacket
See Also:
Top Examples, Source Code

public DatagramPacket(byte[] buf,
                      int length)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public DatagramPacket(byte[] buf,
                      int offset,
                      int length)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public DatagramPacket(byte[] buf,
                      int offset,
                      int length,
                      InetAddress address,
                      int port)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public DatagramPacket(byte[] buf,
                      int offset,
                      int length,
                      SocketAddress address)
               throws SocketException
See Also:
InetAddress, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public DatagramPacket(byte[] buf,
                      int length,
                      InetAddress address,
                      int port)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public DatagramPacket(byte[] buf,
                      int length,
                      SocketAddress address)
               throws SocketException
See Also:
InetAddress, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public InetAddress getAddress()
See Also:
setAddress(java.net.InetAddress)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public byte[] getData()
See Also:
setData(byte[], int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getLength()
See Also:
setLength(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getOffset()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getPort()
See Also:
setPort(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SocketAddress getSocketAddress()
See Also:
setSocketAddress(java.net.SocketAddress)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setAddress(InetAddress iaddr)
See Also:
getAddress()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setData(byte[] buf)
See Also:
getData(), getLength(), NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setData(byte[] buf,
                    int offset,
                    int length)
See Also:
getLength(), getOffset(), getData(), NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLength(int length)
See Also:
setData(byte[], int, int), getLength(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setPort(int iport)
See Also:
getPort()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSocketAddress(SocketAddress address)
See Also:
getSocketAddress(), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags