2012년 3월 13일 화요일 오후 7:18
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.
2012년 3월 14일 수요일 오후 12:10중재자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 firstname.lastname@example.org. But please do not ask technical questions in the email.
- 답변으로 표시됨 Yi-Lun LuoModerator 2012년 3월 20일 화요일 오전 11:22