/// <summary> /// 종료 버튼 클릭 이벤트 핸들러 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void mBtnExit_Click(object sender, EventArgs e) { if (mNetworkType == SERVER) { mAsynSocket.StopServer(); } else if (mNetworkType == CLIENT) { mAsynSocket.CloseClientSocket(); } }
/// <summary> /// 종료 버튼 클릭 이벤트 핸들러 /// </summary> private void mBtnExit_Click(object sender, EventArgs e) { mAsyncSocket.StopServer(); mTimerSendScreenImage.Stop(); mAsyncSocket.CloseClientSocket(); //if (mNetworkType == SERVER) //{ // mAsyncSocket.StopServer(); //} //else if (mNetworkType == CLIENT) //{ // mTimerSendScreenImage.Stop(); // mAsyncSocket.CloseClientSocket(); //} }