Created a UDP solution that will not work due to file size, need help with WCF
-
Tuesday, March 13, 2012 7:18 PM
I created a UDP solution that would take a dataset, convert it to a byte arrray, compress it and send it. The problem I have is UDP has a packet limitation that prevents me from sending the datasets reliably. So I am now back to the drawing board again. I need to send these files in a P2P or UDP program so I can have one "publisher" and many "subscribers" that would contact the publisher, register and start receiving the messages that the publisher is sending out. Anyone have a suggestion on the new direction I need to take? I am not looking for code per se, I just need to know how to create a publisher/subscriber architecture that will handle larger files transfers.
Thanks.
All Replies
-
Wednesday, March 14, 2012 12:10 PMModerator
Hello, you can refer to http://msdn.microsoft.com/en-us/library/ms752254.aspx for a publish subscribe sample. It uses a duplex contract. If you want to support UDP, however, you need more work, as WCF 4 doesn't support UDP out of box (although WCF 4.5 Beta supports it). In WCF 4, you have to implement a custom transport layer to use UDP. Refer to http://msdn.microsoft.com/en-us/library/ms751494.aspx for a sample.Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
If you have feedback about forum business, please contact msdnmg@microsoft.com. But please do not ask technical questions in the email.- Marked As Answer by Yi-Lun LuoModerator Tuesday, March 20, 2012 11:22 AM

