private void ConstructionInitialize() { uCChattingPage = new UCChattingPage(this, null); uCChattingPage.Dock = DockStyle.Fill; callControl.Controls.Add(uCChattingPage); CreateServerThread(); }
private void ConstructionInitialize() { try { uCChattingPage = new UCChattingPage(null, this); uCChattingPage.Dock = DockStyle.Fill; callControl.Controls.Add(uCChattingPage); socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socket.Connect(totalIp, port); CallCreateInfoControl("서버에 접속하였습니다."); CreateReceivedThread(); } catch { CallCreateInfoControl("서버 접속에 이상이 있습니다."); } }