HP3000-L Archives

January 2001, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Fri, 5 Jan 2001 12:01:20 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
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/

ATOM RSS1 RSS2