Author: marcosc Date: 2007-05-04 08:15:44 -0400 (Fri, 04 May 2007) New Revision: 76672
Added: trunk/olive/samples/services/net-peer-tcp-binding-chat/ trunk/olive/samples/services/net-peer-tcp-binding-chat/ChatServer.cs trunk/olive/samples/services/net-peer-tcp-binding-chat/Makefile Log: Sample application where my summer work will be centered. Added: trunk/olive/samples/services/net-peer-tcp-binding-chat/ChatServer.cs =================================================================== --- trunk/olive/samples/services/net-peer-tcp-binding-chat/ChatServer.cs 2007-05-04 12:06:17 UTC (rev 76671) +++ trunk/olive/samples/services/net-peer-tcp-binding-chat/ChatServer.cs 2007-05-04 12:15:44 UTC (rev 76672) @@ -0,0 +1,32 @@ +// +// ChatServer.cs +// +// Author: +// Marcos Cobena ([EMAIL PROTECTED]) +// +// Copyright 2007 Marcos Cobena (http://www.youcannoteatbits.org/) +// + +using System; +using System.ServiceModel; +using System.ServiceModel.PeerResolvers; + +namespace ChatServer +{ + public class ChatServer + { + public static void Main () + { + CustomPeerResolverService cprs; + ServiceHost host; + + try { + cprs = new CustomPeerResolverService (); + + cprs.RefreshInterval = TimeSpan.FromSeconds (5); + } catch (Exception e) { + Console.WriteLine ("[!] {0}", e.Message); + } + } + } +} \ No newline at end of file Added: trunk/olive/samples/services/net-peer-tcp-binding-chat/Makefile =================================================================== --- trunk/olive/samples/services/net-peer-tcp-binding-chat/Makefile 2007-05-04 12:06:17 UTC (rev 76671) +++ trunk/olive/samples/services/net-peer-tcp-binding-chat/Makefile 2007-05-04 12:15:44 UTC (rev 76672) @@ -0,0 +1,7 @@ +all: ChatServer.exe + +ChatServer.exe : ChatServer.cs + gmcs -debug -pkg:olive ChatServer.cs + +clean: + rm ChatServer.exe ChatServer.exe.mdb \ No newline at end of file _______________________________________________ Mono-patches maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-patches
