• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    C#
  • License
    GNU Lesser Genera...
  • Created over 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Networking library for .NET

Griffin.Networking

Griffin.Networking has now been superseded by Griffin.Framework. It's pretty much better at everything.

Documentation

Still work in progress but the core framework should be reasonable stable.

Example HTTP listener

internal class Program
{
	public static void RunDemo()
	{
		var server = new MessagingServer(new MyHttpServiceFactory(),
											new MessagingServerConfiguration(new HttpMessageFactory()));
		server.Start(new IPEndPoint(IPAddress.Loopback, 8888));
	}
}
 
// factory
public class MyHttpServiceFactory : IServiceFactory
{
	public IServerService CreateClient(EndPoint remoteEndPoint)
	{
		return new MyHttpService();
	}
}
 
// and the handler
public class MyHttpService : HttpService
{
	private static readonly BufferSliceStack Stack = new BufferSliceStack(50, 32000);
 
	public MyHttpService()
		: base(Stack)
	{
	}
 
	public override void Dispose()
	{
	}
 
	public override void OnRequest(IRequest request)
	{
		var response = request.CreateResponse(HttpStatusCode.OK, "Welcome");
 
		response.Body = new MemoryStream();
		response.ContentType = "text/plain";
		var buffer = Encoding.UTF8.GetBytes("Hello world");
		response.Body.Write(buffer, 0, buffer.Length);
		response.Body.Position = 0;
 
		Send(response);
	}
}

More Repositories

1

Griffin.Framework

Application framework for Business Applications
C#
168
star
2

Griffin.WebServer

A web server built on top of Griffin.Framework
C#
107
star
3

griffin.mvccontrib

A contribution project for ASP.NET MVC3
C#
83
star
4

griffin.editor

jQuery text editor supporting markdown
JavaScript
79
star
5

Griffin.Data

Data layer for both the read and write side of an .NET application
C#
69
star
6

griffin.yo

An easy SPA library written in TypeScript
TypeScript
44
star
7

dotnetcqs

Command/Query separation for .NET
C#
14
star
8

Griffin.Container

Inversion of control container with (almost) zero configuration
C#
13
star
9

CorsProxy

A CORS proxy for IE9 and below (jQuery + ASP.NET)
C#
12
star
10

Samples

Sample applications for my different libraries
C#
9
star
11

SipSharp

Partial implementation of a SIP stack (RFC3261 etc)
C#
9
star
12

markdownweb

Generates web pages using Markdown
C#
8
star
13

Griffin.Logging

A Logging framework for .NET
C#
6
star
14

griffin

Griffin Framework for .NET
C#
6
star
15

Griffin.Decoupled

Decouple that application, will you?
C#
5
star
16

Griffin.Table

A table plugin for jQuery
JavaScript
5
star
17

Griffin.AdoNetFakes

ADO.NET Driver stub to simplify tests which requires an ADO.NET Driver
C#
4
star
18

Griffin.Wiki

ASP.NET MVC3 Wiki Engine and Implementation
JavaScript
3
star
19

griffin.jquery.tools

A set of smaller scripts which I use in most web applications
JavaScript
1
star
20

WindowsAzure.ServiceBus.CQS

Command/Query separation library for WindowsAzure.ServiceBus
JavaScript
1
star
21

relaxedjs

A lightweight alternative to VueJS and Angular, with 0 runtime dependencies.
TypeScript
1
star
22

Griffin.TelnetClient

A telnet client for .NET
1
star
23

books

PowerShell
1
star