LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-26-2004, 02:28 PM   #1
george_mercury
LQ Newbie
 
Registered: Jun 2004
Location: Slovenia
Distribution: Gentoo
Posts: 27

Rep: Reputation: 15
"Listen on localhost" - what does it mean?


Hi!
I'm writing a daemon which woule take commands from gdb (GNU debugger), interpret them and send them to a remote target. A developer told me to: "write a daemon to listen on localhost, and speak whatever protocol your target needs.". What did he mean with "listen on localhost"? How would I intercept commands from a running program (like gdb)?

Best regards,
George
 
Old 12-26-2004, 03:08 PM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
localhost points to 127.0.0.1, your machine. So it'd be basically running in your machine.. like all the daemons you want to run.

ping localhost
 
Old 12-26-2004, 03:26 PM   #3
george_mercury
LQ Newbie
 
Registered: Jun 2004
Location: Slovenia
Distribution: Gentoo
Posts: 27

Original Poster
Rep: Reputation: 15
OK, thanks! But, how would you then listen to a pogram like gdb?
 
Old 12-26-2004, 06:16 PM   #4
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Sorry but I can't help you much on this one. My programming skills are low.

 
Old 12-26-2004, 06:27 PM   #5
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
I'm not sure what you mean by take commands from gdb. gdb doesn't give any commands. What is it you're trying to do?
 
Old 12-26-2004, 06:28 PM   #6
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
you might want to look at rmi, soap, sockets and others.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
CUPS problem! "localhost:631, connection refused"!!! robbow52 Debian 5 03-04-2009 01:27 PM
my mplayer can watch online steram, but can't listen to "most" of the radio site sirpelidor Linux - Software 1 11-22-2003 06:55 PM
Samba problem - "telnet localhost 139" hangs whitefor Linux - Networking 1 09-23-2003 11:37 AM
/var/log/messages contains "localhost" instead of the real hostname allel Linux - Networking 0 07-15-2002 02:49 PM


All times are GMT -5. The time now is 04:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration