LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-23-2002, 09:55 PM   #1
ChimpFace9000
Member
 
Registered: Jul 2001
Location: So. Cal.
Distribution: Slackware 8.1
Posts: 55

Rep: Reputation: 15
Post Making a program "talk" to another


In the game C-Robots (http://vvv.com/~dbakewel/crobots/), the main program seems to wait for one of the robot programs to startup and talk to it. Im not asking how he did that, but what he used to do that. Im assuming theres some lib that comes with linux that lets you do that.
 
Old 04-24-2002, 03:22 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
He compiles his robots with the librobot.a. He hasn't included the source code to that library but from what I can see he just uses normal network sockets to send data back and forth.
 
Old 05-19-2002, 03:15 PM   #3
kervin
Member
 
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 30
I haven't seen that program.

but you're looking into IPC ( inter-process communication ). There are tons of books on this. A very good one is the Stevens.
http://www.amazon.com/exec/obidos/ASIN/0130810819

IPC falls under many catagories. From most effecient but difficult to program Memory mapped IO ( mmap ), where separate process share memory by sharing a region of memory. To very simple UNIX domain sockets, where the processes share a special socket file to exchange information. And finally UNIX PIPES, where file descriptors and normal file read()/write() functions are used to share information.

--Kervin
 
  


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
chrooted user: "write" and "talk" don't work. ldp Linux - Software 2 04-12-2005 02:05 AM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 11:45 AM
"Could not start process - Can't talk to Klauncher" ?? Sean Murphy Linux - Newbie 3 10-21-2003 11:28 AM
making 2 wireless pci cards "talk" yocompia Slackware 1 08-01-2003 05:29 PM
why cannot "talk" to others,since mesg is yes and disable = no(in /etc/xinetd.c/talk) whepin Linux - Newbie 0 12-31-2001 02:04 AM


All times are GMT -5. The time now is 07:03 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