views:

8

answers:

1

Hi, How do I get the file descriptor of a Java Datagram socket? I've searched the web without any success.

Srini

A: 

You would need a custom factory to return a custom subclass of DatagramSocketImpl that had a public get function for the file descriptor.

bmargulies