42 |
import gnu.classpath.Configuration; |
import gnu.classpath.Configuration; |
43 |
|
|
44 |
/** |
/** |
45 |
|
* Written using on-line Java Platform 1.2 API Specification, as well |
46 |
|
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998). |
47 |
|
* Status: Believed complete and correct. |
48 |
|
*/ |
49 |
|
|
50 |
|
/** |
51 |
* This is the default socket implementation for datagram sockets. |
* This is the default socket implementation for datagram sockets. |
52 |
* It makes native calls to C routines that implement BSD style |
* It makes native calls to C routines that implement BSD style |
53 |
* SOCK_DGRAM sockets in the AF_INET family. |
* SOCK_DGRAM sockets in the AF_INET family. |
54 |
* |
* |
55 |
* @version 0.1 |
* @author Aaron M. Renn <arenn@urbanophile.com> |
56 |
* |
* @author Warren Levy <warrenl@cygnus.com> |
|
* @author Aaron M. Renn (arenn@urbanophile.com) |
|
57 |
*/ |
*/ |
58 |
public class PlainDatagramSocketImpl extends DatagramSocketImpl |
public class PlainDatagramSocketImpl extends DatagramSocketImpl |
59 |
{ |
{ |
|
/** |
|
|
* Option id for the IP_TTL (time to live) value. |
|
|
*/ |
|
|
private static final int IP_TTL = 0x1E61; // 7777 |
|
|
|
|
|
|
|
60 |
// Static initializer to load native library |
// Static initializer to load native library |
61 |
static |
static |
62 |
{ |
{ |
67 |
} |
} |
68 |
|
|
69 |
/** |
/** |
70 |
|
* Option id for the IP_TTL (time to live) value. |
71 |
|
*/ |
72 |
|
private static final int IP_TTL = 0x1E61; // 7777 |
73 |
|
|
74 |
|
/** |
75 |
* This is the actual underlying file descriptor |
* This is the actual underlying file descriptor |
76 |
*/ |
*/ |
77 |
protected int native_fd = -1; |
protected int native_fd = -1; |