Server Socket 작성하기 |
using System; using System.Net.Sockets; using System.Net using System.Text; public class SocketServer{ public static void Main (string [] args) { Socket sListener = new Socket(AddressFamily.InterNetwork, Console.WriteLine("Waiting for a connection on port {0}",ipEndPoint); |
Client Socket 작성하기 |
using System; sender.Connect(ipEndPoint); if (args.Length==0) Sender.Shutdown(SocketShutdown.Both); |
'A Concern Interest > C#소켓프로그래밍' 카테고리의 다른 글
02장 TCP Server&Client 활용 (0) | 2009.09.15 |
---|---|
01장.C# Socket 이란? (0) | 2009.09.15 |