public SendStatusEventArgs(SENDSTATUS status, sendingpacket packet) { this.m_packet = packet; this.m_status = status; switch (status) { case SENDSTATUS.PACKET_RECEIVED: m_msg = "数据已接收"; break; case SENDSTATUS.PACKET_SERVERDOWN: m_msg = "发送到远程服务器失败,可能远程服务器未在线"; break; case SENDSTATUS.PACKET_APPDOWN: m_msg = "发送到远程应用失败,可能远程应用未在线"; break; case SENDSTATUS.PACKET_REJECT: m_msg = "拒绝接收数据包"; break; case SENDSTATUS.PACKET_ERR: m_msg = "数据包传输错误"; break; case SENDSTATUS.PACKET_TIMEOUT: m_msg = "数据包传输超时"; break; case SENDSTATUS.PACKET_CANNOTCROSSAPP: m_msg = "没有给其他应用发送数据的权限"; break; case SENDSTATUS.PACKET_SERVERUNKOWN: m_msg = "未知的stationid,或Appid错误"; break; default: break; } }