Java API Tutorial - DatagramPacket Example
Constructor
- Java DatagramPacket(byte[] buf, int length) Constructor
- Java DatagramPacket(byte[] buf, int length, InetAddress address, int port) Constructor
- Java DatagramPacket(byte[] buf, int offset, int length) Constructor
- Java DatagramPacket(byte[] buf, int offset, int length, InetAddress address, int port) Constructor
- Java DatagramPacket(byte[] buf, int offset, int length, SocketAddress address) Constructor
- Java DatagramPacket(byte[] buf, int length, SocketAddress address) Constructor
Method
- Java DatagramPacket.getAddress()
- Java DatagramPacket.getData()
- Java DatagramPacket.getLength()
- Java DatagramPacket.getOffset()
- Java DatagramPacket.getPort()
- Java DatagramPacket .getSocketAddress ()
- Java DatagramPacket .setAddress (InetAddress iaddr)
- Java DatagramPacket.setData(byte[] buf)
- Java DatagramPacket.setData(byte[] buf, int offset, int length)
- Java DatagramPacket.setLength(int length)
- Java DatagramPacket.setPort(int iport)
- Java DatagramPacket .setSocketAddress (SocketAddress address)