ISocketSession.SendResponse byte[] data, int offset, int length

Aug 15, 2011 at 5:39 PM

It would be really helpful to have another overload of ISocketSession.SendResponse for writing binary data which includes an offset and length field.

I am frequently using a memory stream to create my outgoing messages if various lengths, and write now have to copy the contents of the memory stream's buffer to a correctly sized byte array. I could avoid this memory copy by handing the SendResponse method my byte array, and just an offset/length combination to refer to the valid portion of the buffer to send.

Aug 16, 2011 at 2:39 AM

Your requirement is reasonable, I'll add this feature in next version.

Aug 18, 2011 at 3:48 PM

The code in mainline directory has added this feature!