public void MsgSecret(ClientSocket c, CSPacketBase msgBase) { RspSecret msgSecret = new RspSecret(); msgSecret.Secret = ServerSocket.SecretKey; Send(c, msgSecret); }
public static void SetKey(SCPacketBase key) { RspSecret msgSecret = key as RspSecret; SecretKey = msgSecret.Secret; }