Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > about daemons and IPC

Reply
Thread Tools

about daemons and IPC

 
 
sdistefano@gmail.com
Guest
Posts: n/a
 
      08-27-2006
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?

 
Reply With Quote
 
 
 
 
Paul Rubin
Guest
Posts: n/a
 
      08-27-2006
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.
 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      08-29-2006
At Sunday 27/8/2006 00:01, 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

 
Reply With Quote
 
flupke
Guest
Posts: n/a
 
      08-29-2006
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
 
Reply With Quote
 
Irmen de Jong
Guest
Posts: n/a
 
      08-29-2006
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Daemons and Paths Davertron Ruby 3 03-16-2009 12:48 PM
Re: logging and daemons Fernando M. Maresca Python 2 02-16-2009 07:19 PM
logging and daemons Fernando M. Maresca Python 1 02-16-2009 05:07 PM
Python, Daemons and D-Bus PurpleServerMonkey Python 3 05-25-2008 11:40 AM
Threads and daemons Cd Cd Ruby 7 09-12-2007 05:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57