private static void Msg_CommonRequest(int msgIdx, string[] msgData) { string sendData = TransferProtocol.InitMsgData((MsgTypeCS)msgIdx); foreach (var node in msgData) { sendData += node; sendData += "#"; } Program.g_console_client.Send(sendData); }
public void ReceivedMsg(string msgData) { int msgIdx; string[] msgStr = TransferProtocol.GetMsgStruct(msgData, out msgIdx); if (!msgDictionary.ContainsKey(msgIdx)) { return; } msgDictionary[msgIdx].Run(msgStr); }
private void RequestCopyImages() { if (Program.g_ClientData.downloadImages_VideoName.Length < 1) { return; } string msgData = Program.g_ClientData.downloadImages_VideoName; string sendData = TransferProtocol.Msg_RequestDownloadImages_CS(msgData); Program.g_console_client.Send(sendData); Program.g_ClientData.download_images_progress = 1; }