LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 11-06-2009, 10:33 PM   #1
bigestito
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
how to make a chat 1:n without ipc and programming in C?


well my dear friends, thank you if you are reading this, my question about this.In school i have a task about making a comunication between terminals where there will be a kind of server which will be a terminal and there will be some kinds of clients, which will read the information of the server, that would be like a kind of chat(lol,many kind of),but in fact i wouldnt have to use IPC, but i dont know ho to do that because when im programming my sending of information through scanf in a loop,if this is 1:1 theres no problem but when theres more, until the last had closed his file descriptor to the FIFO(by the way im using a FIFO,lol sorry)so theres no correct communication,theres the beginning of my problm but i dont know ho to read the same FIFO from distinct terminals (which would call clients),the idea is when a client wants to write n send to the server,this receives but when the server wants to reply this would be for every client.if you could help me id be very grateful. See u n blessings.
 
Old 11-08-2009, 07:15 AM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Memory

Well, use some sort of shared memory storage. Or just simply use a pipe. Or maybe a database. (If you're lazy.)

If the simple things don't work out, you can create a "server" process, which re-submits received messages and keeps a pipe open for each client connected.

Last edited by janoszen; 11-08-2009 at 07:16 AM.
 
  


Reply

Tags
chat, ipc


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
is there a prog like gaim that has voice chat, chat to groups, and webcam support? kublador Linux - Software 3 07-08-2008 08:53 AM
How can we make festival read vocally the chat lines appearing from SKYPE ? frenchn00b Linux - General 0 04-15-2008 10:44 PM
linux ipc programming message queues mariogarcia Programming 2 05-28-2006 04:37 PM
ipc programming olivarbudia Programming 0 05-04-2005 10:44 AM


All times are GMT -5. The time now is 05:20 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
Open Source Consulting | Domain Registration