private static int AuthConnectHandler(SessionTcpClient client) { var addr = ((IPEndPoint)client.Client.RemoteEndPoint).Address; var port = ((IPEndPoint)client.Client.RemoteEndPoint).Port; Logger.Info("Auth Server Connection : {0} : {1}", new object[] { addr.ToString(), port }); LoginSession session = new LoginSession(); session.Entry_time = DateTime.Now; session.Ip_address = addr.ToString(); session.Status = SESSIONSTATUS.LOGGINGIN; client.Session = session; session.Auth_client = client; SessionHandler.AddSession(session); return(1); }