- 授权协议: Apache
- 开发语言: .NET
- 操作系统: Windows
- 软件首页: http://griffinframework.net/
软件介绍
Griffin.Framework 是 .NET 的高性能网络框架。
示例代码:
public class Server{
private readonly ChannelTcpListener _server;
public Server()
{
_server = new ChannelTcpListener();
_server.MessageReceived += OnMessage;
_server.ClientConnected += OnClientConnected;
_server.ClientDisconnected += OnClientDisconnected;
}
public int LocalPort {
get { return _server.LocalPort; }
}
public void Start()
{
_server.Start(IPAddress.Any, 0);
}
private void OnClientConnected(object sender, ClientConnectedEventArgs e)
{
Console.WriteLine("Got connection from client with ip " + e.channel.RemoteEndPoint);
}
private void OnClientDisconnected(object sender, ClientDisconnectedEventArgs e)
{
Console.WriteLine("Disconnected: " + e.Channel.RemoteEndpoint);
}
private void OnMessage(ITcpChannel channel, object message)
{
Console.WriteLine("Server received: " + message);
channel.Send(Encoding.ASCII.GetBytes("Hello world"));
}}
Programming in Haskell
Graham Hutton / Cambridge University Press / 2007-1-18 / GBP 34.99
Haskell is one of the leading languages for teaching functional programming, enabling students to write simpler and cleaner code, and to learn how to structure and reason about programs. This introduc......一起来看看 《Programming in Haskell》 这本书的介绍吧!
