473,832 Members | 2,156 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[help]how to implement a linux message queue in windows?

14 New Member
hello,
I'm doing some job concerning code migration from linux to windows,one of the handicaps is the message queue,which is used to do interprocess communication.I 've tried several ways under windows such like pipes ,mailslot and sending message to a window(SendMess age then GetMessage),but it can't reach the performances of the linux's related system calls.
I've got no time to write the message queue source code of my own,through the shared memory mechanism,which I know is theoretically feasible.

what else can I do? Is there a source ready-made?
thanks in advance~
-yogo
Oct 22 '08 #1
1 3409
pootle
68 New Member
Hi,

You might try the boost signals library, see
http://www.boost.org/doc/libs/1_36_0/doc/html/signals.html
It has the advantage of being supported on many platforms *nix/Windows and with many compilers.

Regards.



hello,
I'm doing some job concerning code migration from linux to windows,one of the handicaps is the message queue,which is used to do interprocess communication.I 've tried several ways under windows such like pipes ,mailslot and sending message to a window(SendMess age then GetMessage),but it can't reach the performances of the linux's related system calls.
I've got no time to write the message queue source code of my own,through the shared memory mechanism,which I know is theoretically feasible.

what else can I do? Is there a source ready-made?
thanks in advance~
-yogo
Oct 22 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1542
by: thejackofall | last post by:
Hi I have a MSMQ message queue in a Windows Service. When a message arrives in the queue locally, an event is generated and the event handler handles it. However, if a message arrives in the queue from another machine, the event is not generated. Thus, the event handler isn't executed. I checked the properties and gave "everyone" the permissions to receive and everything else.
2
18789
by: Tony Hamill | last post by:
Hi, can somebody provide me with the correct syntax for creating a message queue in C#. I have private void button1_Click(object sender, System.EventArgs e) { // C# try{
2
2773
by: Steve Lutz | last post by:
Hi All, I am trying to read and write to a message queue. (System.Messaging) I can read and write to a queue. However, the consummers of the queue messages are going to be a mixed bag of application, some of which I do not have control over. When I send a message to the queue, the body of the message is formatted into XML. I do not want this to happen. I just want to put my data directly into the body as is, without .NET putting XML...
3
1946
by: Brian Keating | last post by:
hello, doesn anyone know how to deploy message queues? I've got a program which uses message queues and i wish to deploy it, one click deployment in vs2005 doesn't allow me to specify message queues and a setup project doesn't allow me to specify message queues. Any help appreciated thanks Brian
0
2139
by: Marcus | last post by:
Hello All, I am trying to create a private MSMQ message queue on a remote application server from an asp.net application using the following code: Dim queue As MessageQueue queue = MessageQueue.Create("FormatName:DIRECT=OS:AppServer\private$\" & Me.TextBox1.Text)
5
3167
by: Ikkezelf | last post by:
Hi, I was wondering if it's possible to write a message in the windows message queue by means of c. Already searched a lot through this newsgroup and others. I noticed that it is possible with the use of c++, but i use "normal" c script. I just want something that looks simple, but as I can't find it, it seems not that simple at all.
2
1895
by: hc0605 | last post by:
Hi everyone, I am a newbie to GUI application, and I need help in understanding some concepts: For a Windows-based GUI application, the system maintains a single system message queue. Mouse events etc. are converted into messages and are put in the system message queue by device drivers. The system removes the messages from the system message queue, and posts them to the message queue of the thread that created the destination window... ...
3
5016
by: Ahmad Jalil Qarshi | last post by:
Hi, I have developed an application in C on IBM AIX 5.2. Its using multiple Message Queues to share data between different processes. I am using following functions to send/receive messages into/from message queues: int msgget(key_t, int); ssize_t msgrcv(int, void *, size_t, long int, int); int msgsnd(int, const void *, size_t, int);
0
1460
by: thajudeen | last post by:
Hi , I am able to send a text file (.txt) to a message queue (MSMQ). But i am not able to receive the .txt file from the message queue. Please help how to proceed. I am Using BodyStream property to send the content of the text file. In the message queue am able to see the content data present. I think by default MSMQ uses xmlformatter. Below is code for sending i have used ------------------------------------------------------- ...
0
9795
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10781
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10541
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9320
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7753
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3078
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.