// 登陆认证 public void authUser() { CJMsg msg_send = new CJMsg(); msg_send.setMsgType(MsgType.C_AUTH); msg_send.setMsgToNode(CJConfig.ServerIp.ToString(), CJConfig.ServerTcpPort, CJConfig.ServerID, CJConfig.ServerName); msg_send.setMsgFromNode(CJConfig.LocalIp.ToString(), conn.port_tcp_local, comboBox1.Text, ""); msg_send.addMsgText(textBox2.Text); conn.msg_send = msg_send; conn.tcp_start(); conn.tcp_sendMsg(); log.loging(conn.msg_send.ToString(), CJLog.LogLevel.DEBUG); }