internal void SendLogout(string strUsercode, string strPincode, string swipecardData)
        {
            var data = ServerProtocol.BuildEventWithCredentialsMessage(_kcid, Protocol.EventType.Logout, BuildCredentials(strUsercode, strPincode, swipecardData));

            Send(data);
        }
        private void ReturnOk(Protocol.CommandType commandType)
        {
            var data = ServerProtocol.BuildOkreply(_kcid, commandType);

            Send(data);
        }
        private void ReturnInfo()
        {
            var data = ServerProtocol.BuildGetInfoReply(_kcid);

            Send(data);
        }
        private void ReturnDummyFile(Protocol.FileName fileName)
        {
            var data = ServerProtocol.BuildGetFileReply(_kcid, new byte[] { }, fileName);

            Send(data);
        }
        internal void SendDoorClosedEvent()
        {
            var data = ServerProtocol.BuildEvent(_kcid, Protocol.EventType.DoorClosed);

            Send(data);
        }
        }                 // /HandleReceiveBuffer

        public void SendDoorOpenEvent()
        {
            var data = ServerProtocol.BuildEvent(_kcid, Protocol.EventType.DoorOpen);

            Send(data);
        }