Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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

Report this thread to moderator Post Follow-up to this message
Old Post
Nekom
12-24-04 08:57 PM


Re: Passing java sockets impossible?
"Nekom" <nekom@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.



Report this thread to moderator Post Follow-up to this message
Old Post
Ryan Stewart
12-24-04 08:57 PM


Re: Passing java sockets impossible?
Ryan Stewart wrote:
> "Nekom" <nekom@dark-logic.com> wrote in message
> news:10soc3gqgu1a5a5@corp.supernews.com...
> 

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 w
ay
> 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

Report this thread to moderator Post Follow-up to this message
Old Post
Brett Foster
12-25-04 01:56 AM


Re: Passing java sockets impossible?
when you want contact a c++ programm, why don't you use CORBA

--
D.G. Oort
"Nekom" <nekom@dark-logic.com> schreef in bericht
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
>
>
>    - Luke



Report this thread to moderator Post Follow-up to this message
Old Post
Dirk Gerrit Oort
12-25-04 01:56 PM


Re: Passing java sockets impossible?
Brett Foster wrote:
> Ryan Stewart wrote:
> 
>
>
> No.
> 
>
>
> 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

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++

Report this thread to moderator Post Follow-up to this message
Old Post
Nekom
12-25-04 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:19 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.