Java API Tutorial - DatagramPacket Example








Constructor

  1. Java DatagramPacket(byte[] buf, int length) Constructor
  2. Java DatagramPacket(byte[] buf, int length, InetAddress address, int port) Constructor
  3. Java DatagramPacket(byte[] buf, int offset, int length) Constructor
  4. Java DatagramPacket(byte[] buf, int offset, int length, InetAddress address, int port) Constructor
  5. Java DatagramPacket(byte[] buf, int offset, int length, SocketAddress address) Constructor
  6. Java DatagramPacket(byte[] buf, int length, SocketAddress address) Constructor




Method

  1. Java DatagramPacket.getAddress()
  2. Java DatagramPacket.getData()
  3. Java DatagramPacket.getLength()
  4. Java DatagramPacket.getOffset()
  5. Java DatagramPacket.getPort()
  6. Java DatagramPacket .getSocketAddress ()
  7. Java DatagramPacket .setAddress (InetAddress iaddr)
  8. Java DatagramPacket.setData(byte[] buf)
  9. Java DatagramPacket.setData(byte[] buf, int offset, int length)
  10. Java DatagramPacket.setLength(int length)
  11. Java DatagramPacket.setPort(int iport)
  12. Java DatagramPacket .setSocketAddress (SocketAddress address)