[Delivery-boy-cvs] client/DeliveryBoyC Main.cs,1.4,1.5
Status: Planning
Brought to you by:
mkloubert
From: Marcel K. <gen...@us...> - 2005-02-04 19:59:41
|
Update of /cvsroot/delivery-boy/client/DeliveryBoyC In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9435/DeliveryBoyC Modified Files: Main.cs Log Message: * added event for remote connection in clsEasySocket * changed from m_oSocket.Connect() to m_oSocket.BeginConnect(...) Index: Main.cs =================================================================== RCS file: /cvsroot/delivery-boy/client/DeliveryBoyC/Main.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Main.cs 3 Feb 2005 21:09:59 -0000 1.4 --- Main.cs 4 Feb 2005 19:59:29 -0000 1.5 *************** *** 55,59 **** public static void Main(string[] args) { ! /* sample socket test: clsEasySocket a = new clsEasySocket(); */ bool bool_ExitDoWhile = false; --- 55,59 ---- public static void Main(string[] args) { ! // clsEasySocket a = new clsEasySocket(); bool bool_ExitDoWhile = false; *************** *** 62,72 **** PrintHeader(); ! /* sample socket test: ! a.OnConnect += new clsEasySocket.ConnectHandler(oConnected); ! a.LocalPort = 23; ! a.ListenQueue = 10; ! if (0 == a.Listen()) { --- 62,74 ---- PrintHeader(); ! /* sample socket test: */ ! /* a.OnConnect += new clsEasySocket.ConnectHandler(SocketConnected); ! // a.LocalPort = 23; ! a.RemoteAddress = "localhost"; ! a.RemotePort = 23; ! a.Connect(); */ + /* if (0 == a.Listen()) { *************** *** 134,140 **** } ! /* sample event public static void SocketConnected (System.Object sender, System.Net.Sockets.Socket socket) { return; } */ --- 136,145 ---- } ! // sample event ! /* public static void SocketConnected (System.Object sender, System.Net.Sockets.Socket socket) { + Console.WriteLine("COOL!"); + return; } */ |