Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Passing java sockets impossible?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nekom  
View profile  
 More options Dec 24 2004, 10:05 am
Newsgroups: comp.lang.java.help
From: Nekom <ne...@dark-logic.com>
Date: Fri, 24 Dec 2004 10:05:45 -0500
Local: Fri, Dec 24 2004 10:05 am
Subject: Passing java sockets impossible?
    Is it REALLY impossible to pass java sockets to external programs in
any way?  Is there no socket handle, as in c?  If anyone knows of a way
to do this in java, or can confirm that it is absolutely impossible, it
would be a ton of help.  Thanks

    - Luke


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan Stewart  
View profile  
 More options Dec 24 2004, 12:15 pm
Newsgroups: comp.lang.java.help
From: "Ryan Stewart" <zzanNOt...@gSPAMo.com>
Date: Fri, 24 Dec 2004 11:15:07 -0600
Local: Fri, Dec 24 2004 12:15 pm
Subject: Re: Passing java sockets impossible?
"Nekom" <ne...@dark-logic.com> wrote in message

news:10soc3gqgu1a5a5@corp.supernews.com...
>    Is it REALLY impossible to pass java sockets to external programs in
> any way?  Is there no socket handle, as in c?  If anyone knows of a way to
> do this in java, or can confirm that it is absolutely impossible, it would
> be a ton of help.  Thanks

According to whom is it impossible? I've never tried anything of the sort,
but since there must be an actual connection somewhere, surely there's a way
to get to it. You may have to write some native code, but it would seem
there has to be a way.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brett Foster  
View profile  
 More options Dec 24 2004, 3:28 pm
Newsgroups: comp.lang.java.help
From: Brett Foster <fosterb.no.s.p....@ioctl.ca>
Date: Fri, 24 Dec 2004 15:28:20 -0500
Local: Fri, Dec 24 2004 3:28 pm
Subject: Re: Passing java sockets impossible?

Ryan Stewart wrote:
> "Nekom" <ne...@dark-logic.com> wrote in message
> news:10soc3gqgu1a5a5@corp.supernews.com...

>>   Is it REALLY impossible to pass java sockets to external programs in
>>any way?  Is there no socket handle, as in c?  If anyone knows of a way to
>>do this in java, or can confirm that it is absolutely impossible, it would
>>be a ton of help.  Thanks

No.

> According to whom is it impossible? I've never tried anything of the sort,
> but since there must be an actual connection somewhere, surely there's a way
> to get to it. You may have to write some native code, but it would seem
> there has to be a way.

It's not impossible. One could simply build his or her own socket
implementation and use that and provide documented hooks to get at the
information.

Otherwise it's also not impossible, but hard, painful, insane, and not
worth the effort... It's also likely not stable between revisions.


Brett

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dirk Gerrit Oort  
View profile  
 More options Dec 25 2004, 5:21 am
Newsgroups: comp.lang.java.help
From: "Dirk Gerrit Oort" <oor...@hccnet.nl>
Date: Sat, 25 Dec 2004 11:21:02 +0100
Local: Sat, Dec 25 2004 5:21 am
Subject: Re: Passing java sockets impossible?
when you want contact a c++ programm, why don't you use CORBA

--
D.G. Oort
"Nekom" <ne...@dark-logic.com> schreef in bericht
news:10soc3gqgu1a5a5@corp.supernews.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nekom  
View profile  
 More options Dec 25 2004, 12:30 pm
Newsgroups: comp.lang.java.help
From: Nekom <ne...@dark-logic.com>
Date: Sat, 25 Dec 2004 12:30:05 -0500
Local: Sat, Dec 25 2004 12:30 pm
Subject: Re: Passing java sockets impossible?

    Well what I'm trying to do is to write a java based telnet BBS
system.  And it will need support for external programs, such as door
games.  Modern door games use a drop file that contains a number, which
is the socket handle, which they use to take over the connection.  Now
I've come up with an idea for a very convoluted workaround, but I was
hoping that there was an easier way.  I'm not at all familiar with how
java deals with sockets internally, but it doesn't look like the socket
handle is readily available.  Well if I can't make it work, I may have
to abandon the idea and revert to c++

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jose Solorzano  
View profile  
 More options Dec 28 2004, 8:49 am
Newsgroups: comp.lang.java.help
From: "Jose Solorzano" <jhsol...@hotmail.com>
Date: 28 Dec 2004 05:49:06 -0800
Local: Tues, Dec 28 2004 8:49 am
Subject: Re: Passing java sockets impossible?

SocketImpl has getFileDescriptor() but it's protected.

Can these door games use standard input/output or listen
on a specific port number?

Jose Solorzano


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »