Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 05-28-2006, 11:57 AM   #1
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
linux ipc programming message queues

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;
Old 05-28-2006, 01:20 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Here's a good tutorial:

The absolutely best book on the subject is Stevens:
Advanced Programming in the Unix Environment, 2nd Ed; W. Richard Stevens

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, 04:37 PM   #3
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

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


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
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 11:15 AM
Message Queues naga_presin Linux - Networking 1 05-20-2006 04:26 PM
Message Queues rag_mg Programming 1 05-08-2005 09:00 AM
IPC (Message Queues vs. FIFOs vs. Unix-domain Sockets) TedMaul Programming 0 03-18-2004 05:53 AM
Message Queues BoldKiller Programming 1 05-28-2003 06:40 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:22 AM.

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