preparation of VMPlainDatagramSocketImpl removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all, hi Casey.

As discussed earlier I am investigating the removal of the above class. In
contrast to what I said in another mail I found two uses of the
VMPlainDatagramSocketImpl.

In PlainDatagramSocketImpl the IP_TTL field is used. This can be fixed by moving
the constant into e.g VMPlainSocketImpl or VMChannel. When doing so the
constant's name should be changed to something like CP_IP_TTL because it would
otherwise conflict with a constant in the system headers when using the class in
GCJ.

Still there is something to find out: The IP_TTL constant is used for the
VMPlainSocketImpl.setOption method. The JNI code for that method contains a big
switch statement, but there is no case for IP_TTL.

Should it simply be added?

The other thing that is used from VMPlainDatagramSocketImpl is the connect()
method. Is it possible for DGRAM sockets to just use VMChannel.connect instead?

cya
Robert

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux