/// <summary> /// Client 로 전문 보내기 /// </summary> /// <param name="sendEventArgs">보낼 SAEA 객체</param> /// <param name="packetName">옵션 : 특정전문 지정</param> /// <param name="userId">옵션 : 사용자 ID</param> /// <param name="message">옵션 : 메세지</param> internal void SendMessageToClient(SocketAsyncEventArgs sendEventArgs, MessagePacketNameEnum packetName = MessagePacketNameEnum.EMPTY, string userId = "") { DataHoldingUserToken sendToken = (DataHoldingUserToken)sendEventArgs.UserToken; MessageStream response = null; /// 전문 생성 response = messageParsing.GetResponse(sendEventArgs, packetName, userId); if (response == null) { return; } /// 버퍼로 복사 int readByteAll = response.ReadAll(ref sendToken.dataToSend, this.socketListenerSettings.BufferSize); this.SendMessage(sendEventArgs); }