Search Wiki:
Article Description
In Part 2 of this two-part series, the author completes his walkthrough of a call center client application built using Silverlight.

This article is available at:
Last edited Jan 25 2009 at 3:35 PM  by howarddierking, version 3
JasonH wrote  Mar 24 2009 at 3:25 AM  
Outstanding example, thanks. Was curious about the design of the ReceiveBuffer.cs class. What if the message size sent exceeds the buffers size (the example 32768 for length)? Seems that the ReceiveBuffer class would benefit from an additional buffer for the "total message", with the current buffer storing each chunk received. Right now, testing a scenario with the buffer size set to, say 256, and ensuring message sizes are greater, the code begins looping as the code e.SetBuffer(_receiveBuffer.Offset,_receiveBuffer.Remaining) closes off the buffer because _receiveBuffer.Remaining returns 0 once the buffer is totally filled up. The receiveBuffer.AdjustBuffer() routine would also make more sense to me if a secondary byte array buffer was employed. I'm probably missing something here though.

Page view tracker