1 |
/* PlainDatagramSocketImpl.java -- Default DatagramSocket implementation |
/* PlainDatagramSocketImpl.java -- Default DatagramSocket implementation |
2 |
Copyright (C) 1998, 1999, 2001, 2003, 2004 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
123 |
* |
* |
124 |
* @exception SocketException If an error occurs |
* @exception SocketException If an error occurs |
125 |
*/ |
*/ |
126 |
protected native synchronized void bind(int port, InetAddress addr) |
protected synchronized native void bind(int port, InetAddress addr) |
127 |
throws SocketException; |
throws SocketException; |
128 |
|
|
129 |
/** |
/** |
131 |
* |
* |
132 |
* @exception SocketException If an error occurs |
* @exception SocketException If an error occurs |
133 |
*/ |
*/ |
134 |
protected native synchronized void create() throws SocketException; |
protected synchronized native void create() throws SocketException; |
135 |
|
|
136 |
/** |
/** |
137 |
* Sets the Time to Live value for the socket |
* Sets the Time to Live value for the socket |
227 |
* |
* |
228 |
* @exception SocketException If an error occurs |
* @exception SocketException If an error occurs |
229 |
*/ |
*/ |
230 |
public native synchronized void setOption(int option_id, Object val) |
public synchronized native void setOption(int option_id, Object val) |
231 |
throws SocketException; |
throws SocketException; |
232 |
|
|
233 |
/** |
/** |
239 |
* |
* |
240 |
* @exception SocketException If an error occurs |
* @exception SocketException If an error occurs |
241 |
*/ |
*/ |
242 |
public native synchronized Object getOption(int option_id) |
public synchronized native Object getOption(int option_id) |
243 |
throws SocketException; |
throws SocketException; |
244 |
|
|
245 |
/** |
/** |
246 |
* Closes the socket |
* Closes the socket |
247 |
*/ |
*/ |
248 |
protected native synchronized void close(); |
protected synchronized native void close(); |
249 |
|
|
250 |
/** |
/** |
251 |
* Gets the Time to Live value for the socket |
* Gets the Time to Live value for the socket |
282 |
* |
* |
283 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
284 |
*/ |
*/ |
285 |
protected native synchronized void join(InetAddress addr) throws IOException; |
protected synchronized native void join(InetAddress addr) throws IOException; |
286 |
|
|
287 |
/** |
/** |
288 |
* Leaves a multicast group |
* Leaves a multicast group |
291 |
* |
* |
292 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
293 |
*/ |
*/ |
294 |
protected native synchronized void leave(InetAddress addr) throws IOException; |
protected synchronized native void leave(InetAddress addr) throws IOException; |
295 |
|
|
296 |
/** |
/** |
297 |
* What does this method really do? |
* What does this method really do? |