Skip to content

Instantly share code, notes, and snippets.

@chrisforbes
Created September 30, 2009 22:03
Show Gist options
  • Save chrisforbes/198495 to your computer and use it in GitHub Desktop.
Save chrisforbes/198495 to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
var server = new Server("http://localhost:6120/farmnet/")
{
Routes = new[]
{
Server.ServeFolder( "/farmnet/static/", "static/" ),
Server.ServeError( "/farmnet/", 404, "Not found" ),
},
};
for (; ; )
server.AcceptOne();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment