Node.cs
C# 高性能网络开发库
访问GitHub主页
共0Star
详细介绍
Node.cs 是用 C# 实现的 Node.js 。
示例代码:
public class Webserver : INodeProgram
{
public int Main( string[] args )
{
new HttpServer( ( IHttpTransaction t ) =>
{
Console.WriteLine( "got connection {0}", t.Request.Path );
t.Response.Write( "<H1>Hello World!</H1>" );
t.Response.End();
}, IOLoop.Instance ).Listen( "10.0.2.15", 8080 );
Console.WriteLine( "listening on 8080" );
return 0;
}
}
推荐源码
暂无源码 更多源码...