ipc

How can I handle multiple sockets within a Perl daemon with large memory usage?

I have created a client-server program with Perl using IO::Socket::INET. I access server through CGI based site. My server program will run as daemon and will accept multiple simultaneous connections. My server process consumes about 100MB of memory space (9 large arrays, many arrays...). I want these hashes to reside in memory and shar...

How do I run a Perl script from within a Perl script?

I've got a Perl script that needs to execute another Perl script. This second script can be executed directly on the command line, but I need to execute it from within my first program. I'll need to pass it a few parameters that would normally be passed in when it's run standalone (the first script runs periodically, and executes the sec...

Best way for interprocess communication in C++

I have two processes one will query other for data.There will be huge amount of queries in a limited time (10000 per second) and data (>100 mb) will be transferred per second.Type of data will be an integral type(double,int) My question is in which way to connect this process? Shared memory , message queue , lpc(Local Procedure call) o...

How do I setup a callback mechanism for RichEdit in win32

In win32, how do I setup a callback mechanism for RichEdit I have not created myself? PART 1 I'm reading from a textedit field in another application's GUI. This works just fine now, except after the first read I'd like to fetch only new or modified lines. In GTK+ or Qt I'd just install a callback on some signal the field edits when it...

Comparing Unix/Linux IPC

Lots of IPCs are offered by unix/linux : Pipes/sockets/shared memory/dbus/message-queues. I would like to know what are the respective most suitable applications , e.g. what are the places where shared memory are preferred over message queue and vice versa. Also looking for data comparing their performances. Tried googling and st_over...

What's the best IPC mechanism for medium-sized data in Perl?

I'm working on designing a multi-tiered app in Perl and I'm wondering about the pros and cons of the various IPC mechnisms available to me. I'm looking at handling moderately-sized data, typically a few dozen kilobytes but up to a couple of megabytes, and the load is pretty light, at most a couple of hundred requests per minute. My pri...

How to calculate statistics on different machine and combine them again?

I have two backend applications which provide the same functions and they are located on two separate machines (actually this is to make a load balance). So they handle the client frontend requests using the same manner. I want to collect some statistics about all the clients connected (i.e: what is the most used component in the client...

Invoke Python modules from Java

I have a Python interface of a graph library written in C - igraph (the name of library). My need is to invoke the python modules pertaining to this graph library from Java code. It goes like this, the core of library is in c. This core has been imported into Python and interfaces to the functions embedded in core are available in Python...

Sending a password to a Windows Service

What is the best way to send a password to a Windows Service? Our application needs a password in order to start. I don't care that services are "normally" supposed to run without user interaction. Its good enough for us that an operator can start the application and then log off. On a unix system, I would just echo the password over ...

python IPC (Inter Process Communication) for Vista UAC (User Access Control)

I am writing a Filemanager in (wx)python - a lot already works. When copying files there is already a progress dialog, overwrite handling etc. Now in Vista when the user wants to copy a file to certain directories (eg %Program Files%) the application/script needs elevation, which cannot be asked for at runtime. So i have to start anothe...

Send message from one running console app to another

I have one console app that is doing some lengthy syncing to an ftp server. Another console app prepares a local filesystem with some needed updated files. Then the second one will wait for the first one to finish before swapping a final directory name so it becomes visible on the web. I searched for the best way to make the syncing app...

DBus equivalent for Windows

Anyone know of a Linux/DBus sort of mechanism for Windows? Thanks ...

What is an analog for win32 file locking in boost::interprocess?

What sync mechanism should I use to give exclusive access to the text file in boost? The file will likely be accessed by threads from only one process. ...

How do I write a value to the registry on a Windows Mobile 5 device?

I have a string value that I want to write to the registry as a Dword to read via another program. How can i create a new key/string using c# .net? ...

Best practices for passing data between processes in Cocoa

I am in the middle of solving a problem which requires me to do the following in my 64-bit Cocoa application: Spawn a 32-bit Cocoa helper tool (command line tool) from within my application. This helper will open a file (a quicktime movie to be precise) and access information about that file using 32-bit only APIs (Quicktime-C APIs) T...

(How) Can I determine the socket family from the socket file descriptor

I am writing an API which includes IPC functions which send data to another process which may be local or on another host. I'd really like the send function to be as simple as: int mySendFunc(myDataThing_t* thing, int sd); without the caller having to know -- in the immediate context of the mySendFunc() call -- whether sd leads to a ...

Methods of communicating between kernel and user apps

New to Linux programming in general. I am trying to communicate with a kernel module via shared memory, but cannot call the functions used in user apps such as shmget(); I have installed kernel-headers and kernel-devel, and included , to the kernel module source, but the headers do not contain any functions. Is there a standard way of...

Login method Customization using GINA

Hi All, I know it's not easy to find a master in GINA, but my question is most near to Interprocess Communication(IPC), I wrote my custom GINA in unmanaged c++, I included it a method that checks for validity of a fingerprint for the user try to login, this function will call some method in a running system windows service written in c#...

Login method Customization using GINA

DUPLICATE:http://stackoverflow.com/questions/523912/login-method-customization-using-gina Hi All, I know it's not easy to find a master in GINA, but my question is most near to Interprocess Communication(IPC), I wrote my custom GINA in unmanaged c++, I included it a method that checks for validity of a fingerprint for the user try to...

Change Properties.settings for a .net deployed application

Hi All, I have two .net applications, these applications want to talk to each other, I made a setting in the first project as follows [CompilerGeneratedAttribute()] [GeneratedCodeAttribute("SettingsSingleFileGenerator", "9.0.0.0")] public sealed partial class Settings :ApplicationSettingsBase { [UserScopedSettingAttribute()]...