2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_net_DatagramSocket__
5 #define __java_net_DatagramSocket__
9 #include <java/lang/Object.h>
18 class DatagramSocketImpl
;
19 class DatagramSocketImplFactory
;
27 class DatagramChannel
;
33 class java::net::DatagramSocket
: public ::java::lang::Object
36 public: // actually protected
37 DatagramSocket(::java::net::DatagramSocketImpl
*);
41 DatagramSocket(jint
, ::java::net::InetAddress
*);
42 DatagramSocket(::java::net::SocketAddress
*);
43 public: // actually package-private
44 virtual ::java::net::DatagramSocketImpl
* getImpl();
47 virtual ::java::net::InetAddress
* getInetAddress();
48 virtual jint
getPort();
49 virtual ::java::net::InetAddress
* getLocalAddress();
50 virtual jint
getLocalPort();
51 virtual jint
getSoTimeout();
52 virtual void setSoTimeout(jint
);
53 virtual jint
getSendBufferSize();
54 virtual void setSendBufferSize(jint
);
55 virtual jint
getReceiveBufferSize();
56 virtual void setReceiveBufferSize(jint
);
57 virtual void connect(::java::net::InetAddress
*, jint
);
58 virtual void disconnect();
59 virtual void receive(::java::net::DatagramPacket
*);
60 virtual void send(::java::net::DatagramPacket
*);
61 virtual void bind(::java::net::SocketAddress
*);
62 virtual jboolean
isClosed();
63 virtual ::java::nio::channels::DatagramChannel
* getChannel();
64 virtual void connect(::java::net::SocketAddress
*);
65 virtual jboolean
isBound();
66 virtual jboolean
isConnected();
67 virtual ::java::net::SocketAddress
* getRemoteSocketAddress();
68 virtual ::java::net::SocketAddress
* getLocalSocketAddress();
69 virtual void setReuseAddress(jboolean
);
70 virtual jboolean
getReuseAddress();
71 virtual void setBroadcast(jboolean
);
72 virtual jboolean
getBroadcast();
73 virtual void setTrafficClass(jint
);
74 virtual jint
getTrafficClass();
75 static void setDatagramSocketImplFactory(::java::net::DatagramSocketImplFactory
*);
77 static ::java::net::DatagramSocketImplFactory
* factory
;
78 ::java::net::DatagramSocketImpl
* __attribute__((aligned(__alignof__( ::java::lang::Object
)))) impl
;
80 ::java::net::InetAddress
* remoteAddress
;
84 static ::java::lang::Class
class$
;
87 #endif // __java_net_DatagramSocket__