private void btnLoginServer_Click(object sender, EventArgs e) { if (!isLoginServerOpen) { m_thdsLoginServer.Clear(); LoginServerDLG dlg = new LoginServerDLG(); for (int i = 0; i < 10; i++) m_thdsLoginServer.Add(THREADCALL_LOGIN(15100+ i, dlg)); txtActiveLoginPort.Text = m_thdsLoginServer.Count().ToString("00"); btnLoginServer.Enabled = false; } else { foreach (Thread thd in m_thdsLoginServer) { try { thd.Abort(); btnLoginServer.Text = "Login Server Başlat"; } catch(Exception ex) { ProgressList.Items.Add(ex.Message); } } } isLoginServerOpen = !isLoginServerOpen; }
public LoginSession(Socket soc, LoginServerDLG g_pLogin) { this.socket = soc; this.g_pMain = g_pLogin; ReceiveUser(); }
public Thread THREADCALL_LOGIN(int Port, LoginServerDLG mainLogin) { Thread thd = new Thread(() => { new KOSocket(mainLogin).Read(Port); }); thd.Start(); ProgressList.Items.Add(string.Format("{0} Numaralı port başlatıldı.", Port)); return thd; }
public static Thread THREADCALL_LOGIN(int Port, LoginServerDLG mainLogin) { Thread thd = new Thread(() => { new KOSocket(mainLogin).Read(Port); }); thd.Start(); Console.WriteLine(string.Format("Login Server : {0} Numaralı port başlatıldı.", Port)); return thd; }
private void btnLoginServer_Click(object sender, EventArgs e) { if (!isLoginServerOpen) { m_thdsLoginServer.Clear(); LoginServerDLG dlg = new LoginServerDLG(); for (int i = 0; i < 10; i++) { m_thdsLoginServer.Add(THREADCALL_LOGIN(15100 + i, dlg)); } txtActiveLoginPort.Text = m_thdsLoginServer.Count().ToString("00"); btnLoginServer.Enabled = false; } else { foreach (Thread thd in m_thdsLoginServer) { try { thd.Abort(); btnLoginServer.Text = "Login Server Başlat"; } catch (Exception ex) { ProgressList.Items.Add(ex.Message); } } } isLoginServerOpen = !isLoginServerOpen; }
public static Thread THREADCALL_LOGIN(int Port, LoginServerDLG mainLogin) { Thread thd = new Thread(() => { new KOSocket(mainLogin).Read(Port); }); thd.Start(); Console.WriteLine(string.Format("Login Server : {0} Numaralı port başlatıldı.", Port)); return(thd); }
public Thread THREADCALL_LOGIN(int Port, LoginServerDLG mainLogin) { Thread thd = new Thread(() => { new KOSocket(mainLogin).Read(Port); }); thd.Start(); ProgressList.Items.Add(string.Format("{0} Numaralı port başlatıldı.", Port)); return(thd); }
static void Main() { Console.Title = "Knight Online Server"; LoginServerDLG dlg = new LoginServerDLG(); for (int i = 0; i < 10; i++) THREADCALL_LOGIN(15100 + i, dlg); THREADCALL_GAME(15001); }
static void Main() { Console.Title = "Knight Online Server"; LoginServerDLG dlg = new LoginServerDLG(); for (int i = 0; i < 10; i++) { THREADCALL_LOGIN(15100 + i, dlg); } THREADCALL_GAME(15001); }
public KOSocket(LoginServerDLG g_pLoginServer) { isLoginServer = true; this.g_pLogin = g_pLoginServer; }