I guess you are saying there's no way. But I saw SocketImpl has a
private field called 'fd'. Can't I do something to set it to the one
created in the C code? If so, how to set it? and how to associate this
SocketImpl object to the SSLServerSocket?
> > Hi all,
> >
[quoted text clipped - 14 lines]
> Descriptors have no meaning outside the OS.
> Similiar to a pointer.
kjc - 06 Apr 2005 02:58 GMT
> I guess you are saying there's no way. But I saw SocketImpl has a
> private field called 'fd'. Can't I do something to set it to the one
[quoted text clipped - 25 lines]
>>Descriptors have no meaning outside the OS.
>>Similiar to a pointer.
You'll have an int value for the fd, but, it will mean nothing to the OS
on the machine that is attemping the connection. Since it was not
allocated on that machine.
I don't understand why you really need to do this. What it sounds like
you want to do is pass in the port number via JNI.