private void button1_Click(object sender, EventArgs e) { MineSocket ms = new MineSocket(); int svrcnt = ms.MineSocketStart(); if (svrcnt == 0) { tbStatus.AppendText("비동기 소켓서버가 시작되었습니다."); } }
static void Main(string[] args) { MineSocket ms = new MineSocket(); ms.MineSocketStart(); }