1

I am using the System.Messaging.MessageQueue to send and receive multicast System.Messaging.Message’s on my LAN – this works fine.

However, I have a requirement to receive the msgs without using a message queue.

As the MessageQueue uses the PGM protocol (113) to send messages I am trying to build a type that listens on PGM (protocol 113) using a socket (e.g. new Socket(AddressFamily.InterNetwork, SocketType.Rdm, (ProtocolType)113);). The type is receiving message data but it is in a text format (with a soap formatter section -see example this example on msdn http://msdn.microsoft.com/en-us/library/cc219170.aspx)

I obviously want binary data so i can cast it into a System.Messaging.Message and get at the real data.

Any ideas on how i can do this are greatly appreciated .

4

2 回答 2

1

如果您纯粹是在寻找在 MS Windows 上使用 PGM,那么Emcaster是非常好的信息源,其中包含如何使用它的示例。

但是,如果您正在寻找具有更广泛功能的更成熟的解决方案,那么nServiceBus框架应该是您的选择。

于 2008-12-09T23:16:37.780 回答
0

你可以偷看他们吗?MSMQ 支持该功能。或者您只是想阅读您通常不收听的队列上的消息?

于 2009-08-18T02:01:55.693 回答