If anyone cares, the answer is that a socket`s i/o streams extend file i/o streams which have getFD method. This is of course undocumented. The following code works: FileInputStream in = (FileInputStream) Socket.getInputStream(); FileDescriptor fd = in.getFD(); Dan In article <[log in to unmask]>, [log in to unmask] wrote: > Hi all. > > I want to use the HP thread polling API, however I've been unable to > figure out how to get access to the FileDescriptor objects from the > Sockets I'm using. > > Any ideas? > > Thanks > > Sent via Deja.com http://www.deja.com/ > Before you buy. > Sent via Deja.com http://www.deja.com/