473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

about daemons and IPC

Hey people!
For the first time I'm doing a client/server application, and I'm
really confused with IPC stuff.

I read the fastest method is shared memory, but I tryed mmap and found
it tedious for the amount of data I'm handling (which is 30K at most,
but mmap seems to get tedious for anything bigger than a boolean... am
I missing something?)

Then I found many solutions for forked processes (like posh), but
that's not what I need right now.

Any suggestions?

Aug 27 '06 #1
4 1454
sd********@gmail.com writes:
For the first time I'm doing a client/server application, and I'm
really confused with IPC stuff.
Client-server applications are traditionally done with sockets.
I read the fastest method is shared memory, but I tryed mmap and found
it tedious for the amount of data I'm handling (which is 30K at most,
but mmap seems to get tedious for anything bigger than a boolean... am
I missing something?)
Mmap is missing any kind of locks, semaphores, etc. There was an shm
module that included this stuff but I don't know what's happened to it.
It's really unfortunate that it was never included with Python.
Aug 27 '06 #2
At Sunday 27/8/2006 00:01, sd********@gmail.com wrote:
>Hey people!
For the first time I'm doing a client/server application, and I'm
really confused with IPC stuff.

I read the fastest method is shared memory, but I tryed mmap and found
it tedious for the amount of data I'm handling (which is 30K at most,
but mmap seems to get tedious for anything bigger than a boolean... am
I missing something?)
I'm a bit confused - you mean client/server running both on the same
machine, right? Else, shared memory is of no use.
Sockets are used, usually, but depends on your needs.
>Then I found many solutions for forked processes (like posh), but
that's not what I need right now.
Perhaps you can tell what you are trying to do...?
Gabriel Genellina
Softlab SRL

__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas

Aug 29 '06 #3
sd********@gmail.com schreef:
Hey people!
For the first time I'm doing a client/server application, and I'm
really confused with IPC stuff.

I read the fastest method is shared memory, but I tryed mmap and found
it tedious for the amount of data I'm handling (which is 30K at most,
but mmap seems to get tedious for anything bigger than a boolean... am
I missing something?)

Then I found many solutions for forked processes (like posh), but
that's not what I need right now.

Any suggestions?
You can also use RPC or even use a framework to do that for you like
Twisted. I like both approaches because they simplify communications.
For Twisted you have the initial investement in getting to know it but
it's also a lot more versatile
Aug 29 '06 #4
sd********@gmail.com wrote:
Hey people!
For the first time I'm doing a client/server application, and I'm
really confused with IPC stuff.
[...]
Any suggestions?

http://pyro.sourceforge.net

depending on your needs....

--Irmen
Aug 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: James Gregory | last post by:
I have a C++ program. I would like it to send data to a web server. A script on said server would interpret this data and make some changes to an SQL database on the server. Googling I can...
1
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
4
by: iclinux | last post by:
hi there, I'm new to python, and have two questions: a. how to exit the whole process in a thread? b. when thread doing a infinite loops, how to terminate the process?: it seems that the...
2
by: gnewsg | last post by:
Hi all. I've just finished to write an FTP daemon in Python. To do things well I'd like to write an 'insteller' to permit the end user to 'deeply' install the package inside the system. In details...
0
by: Andrey | last post by:
HI i have a newbie question about the file() function. I have 2 daemons running on my linux box. 1 will record the IDs to a file - logs.txt other 1 will open this file, read the IDs, and then...
3
by: PurpleServerMonkey | last post by:
Seeking feedback from group members on a design I'm looking at using in a project. I've created an XML-RPC server and a number of Daemons, the idea is that the XML-RPC server gets a request from...
5
by: Jeffrey Barish | last post by:
As per Stevens/Rago, "file and record locking provides a convenient mutual-exclusion mechanism". They note the convention of putting the lock file in /var/run in a file called <name>.pid, where...
0
by: Cameron Simpson | last post by:
On 12Nov2008 14:07, Jeff McNeil <jeff@jmcneil.netwrote: | On Nov 12, 4:57 pm, Jeffrey Barish <jeff_bar...@earthlink.netwrote: | As per Stevens/Rago, "file and record locking provides a convenient...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.