DatagramPacket.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_net_DatagramPacket__
  3. #define __java_net_DatagramPacket__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace net
  12. {
  13. class DatagramPacket;
  14. class InetAddress;
  15. class SocketAddress;
  16. }
  17. }
  18. }
  19. class java::net::DatagramPacket : public ::java::lang::Object
  20. {
  21. public:
  22. DatagramPacket(JArray< jbyte > *, jint, jint);
  23. DatagramPacket(JArray< jbyte > *, jint);
  24. DatagramPacket(JArray< jbyte > *, jint, jint, ::java::net::InetAddress *, jint);
  25. DatagramPacket(JArray< jbyte > *, jint, ::java::net::InetAddress *, jint);
  26. DatagramPacket(JArray< jbyte > *, jint, jint, ::java::net::SocketAddress *);
  27. DatagramPacket(JArray< jbyte > *, jint, ::java::net::SocketAddress *);
  28. ::java::net::InetAddress * getAddress();
  29. jint getPort();
  30. JArray< jbyte > * getData();
  31. jint getOffset();
  32. jint getLength();
  33. void setAddress(::java::net::InetAddress *);
  34. void setPort(jint);
  35. void setSocketAddress(::java::net::SocketAddress *);
  36. ::java::net::SocketAddress * getSocketAddress();
  37. void setData(JArray< jbyte > *);
  38. void setData(JArray< jbyte > *, jint, jint);
  39. void setLength(jint);
  40. private:
  41. JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) buffer;
  42. jint offset;
  43. public: // actually package-private
  44. jint length;
  45. jint maxlen;
  46. private:
  47. ::java::net::InetAddress * address;
  48. jint port;
  49. public:
  50. static ::java::lang::Class class$;
  51. };
  52. #endif // __java_net_DatagramPacket__