Exemplo n.º 1
0
 /// <summary>
 /// Remove the handshake string from the buffer.
 /// 
 /// On entry and exit, "position" is the #of bytes in the buffer.
 /// </summary>
 internal static void consumeHandshake(ByteBuffer buf)
 {
     // in theory, nothing else can have arrived, so this is overkill
     buf.flip(); // limit<-posn, posn<-0
     buf.position = mHandshake.Length;
     buf.compact(); // shift posn...limit, posn<-pending data
 }