LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 05-28-2006, 10:57 AM   #1
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 185

Rep: Reputation: 31
linux ipc programming message queues


Hello
I am new to linux, and I have to program a sort of game; using message queues, it has to be a server-client implementation; the server must create the message queues and the client connect to it. i really don't know how to start? does anybody has a tutorial or something like that that might help me do what i need here?
thank you very much in advance, it's really important;
regards
Mario
 
Old 05-28-2006, 12:20 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,858
Blog Entries: 1

Rep: Reputation: Disabled
Here's a good tutorial:
http://mia.ece.uic.edu/~papers/WWW/m...i-process.html

The absolutely best book on the subject is Stevens:
Advanced Programming in the Unix Environment, 2nd Ed; W. Richard Stevens
http://www.bookpool.com/sm/0201433079

Just FYI, the term "client/server" usually implies network communications between separate hosts. Message queues only provide communication between different processes on the same host.
 
Old 05-28-2006, 03:37 PM   #3
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 185

Original Poster
Rep: Reputation: 31
yes, i understand you.. but that's the terminology provided to me.
'a client starts the message queue and waits for clients to connect to it. ' it's to manage a golf tournament.. you know the simple way; a client is supposed to be a player, the player says to the pseudo server that it wants to pay it passes it the pid and a message, the server acknowledges its request, stores the pid to indentify it later and allow him to play to a whole.. when the pseudoclient is done, he may pass to the following hole as long as a player it's not done in a hole it cannot move to the next hole and only a playet can be in a hole at the same time.
the thing is quite simple; I decide myself when the player is done with the hole, by entering it's score.
do you think messages queues are suitable for this.. all i need to do it's that they communicate properly..
thank you very much.. i hope you can advice me further
regards
mario
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 10:15 AM
Message Queues naga_presin Linux - Networking 1 05-20-2006 03:26 PM
Message Queues rag_mg Programming 1 05-08-2005 08:00 AM
IPC (Message Queues vs. FIFOs vs. Unix-domain Sockets) TedMaul Programming 0 03-18-2004 04:53 AM
Message Queues BoldKiller Programming 1 05-28-2003 05:40 PM


All times are GMT -5. The time now is 04:53 AM.

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
Open Source Consulting | Domain Registration