recv_accept() { byteChannel.putRecvData( "00 00 00 28 77 77 00 F0 00 00 00 05 43 48 41 42 " + "55 00 00 00 " + TestUtils.getChabuVersionAsHex() + "00 00 03 E8 12 34 56 78 " + "00 00 00 03 41 42 43 00 " + getAcceptData()); sut.recv(byteChannel); Assert.IsTrue(setup.isRemoteAcceptReceived()); completionListener.Verify(r => r()); }
protected override void processRecvArm() { Utils.ensure(setup.isRemoteAcceptReceived(), ChabuErrorCode.ASSERT, ""); if (packetSize != 16) { throw new ChabuException(string.Format("Packet type ARM with unexpected len field: {0}", packetSize)); } int channelId = recvBuf.getInt(); int arm = recvBuf.getInt(); ChabuChannelImpl channel = channels.get(channelId); channel.handleRecvArm(arm); }