Fleck:C#Websocket实现

上传者: 42165973 | 上传时间: 2021-09-05 18:49:30 | 文件大小: 48KB | 文件类型: ZIP
斑点 Fleck是C#中的WebSocket服务器实现。 从项目分支出来的Fleck不需要继承,容器或其他引用。 Fleck不依赖于HttpListener或HTTP.sys ,这意味着它将在Windows 7和Server 2008主机上运行。 例子 以下是将回显到客户端的示例。 var server = new WebSocketServer ( " ws://0.0.0.0:8181 " ); server . Start ( socket => { socket . OnOpen = () => Console . WriteLine ( " Open! " ); socket . OnClose = () => Console . WriteLine ( " Close! " ); socket . OnMessage = message => socket

文件下载

资源详情

[{"title":"( 53 个子文件 48KB ) Fleck:C#Websocket实现","children":[{"title":"Fleck-master","children":[{"title":".gitattributes <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"Fleck.sln <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"Samples","children":[{"title":"ConsoleApp","children":[{"title":"client.html <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"ConsoleApp.csproj <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"Server.cs <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Fleck","children":[{"title":"HandlerFactory.cs <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"RequestParser.cs <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"WebSocketConnection.cs <span style='color:#111;'> 6.23KB </span>","children":null,"spread":false},{"title":"IntExtensions.cs <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"ReadState.cs <span style='color:#111;'> 421B </span>","children":null,"spread":false},{"title":"SocketWrapper.cs <span style='color:#111;'> 6.69KB </span>","children":null,"spread":false},{"title":"FleckLog.cs <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"WebSocketStatusCodes.cs <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"SubProtocolNegotiator.cs <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"Handlers","children":[{"title":"Draft76Handler.cs <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"FlashSocketPolicyRequestHandler.cs <span style='color:#111;'> 919B </span>","children":null,"spread":false},{"title":"ComposableHandler.cs <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"Hybi13Handler.cs <span style='color:#111;'> 8.19KB </span>","children":null,"spread":false}],"spread":false},{"title":"QueuedStream.cs <span style='color:#111;'> 7.38KB </span>","children":null,"spread":false},{"title":"Fleck.csproj <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"Interfaces","children":[{"title":"IWebSocketConnectionInfo.cs <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"IWebSocketServer.cs <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":"IHandler.cs <span style='color:#111;'> 417B </span>","children":null,"spread":false},{"title":"ISocket.cs <span style='color:#111;'> 1014B </span>","children":null,"spread":false},{"title":"IWebSocketConnection.cs <span style='color:#111;'> 739B </span>","children":null,"spread":false}],"spread":false},{"title":"WebSocketConnectionInfo.cs <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"WebSocketException.cs <span style='color:#111;'> 643B </span>","children":null,"spread":false},{"title":"FrameType.cs <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"WebSocketHttpRequest.cs <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"ConnectionNotAvailableException.cs <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"WebSocketServer.cs <span style='color:#111;'> 6.14KB </span>","children":null,"spread":false},{"title":"Helpers","children":[{"title":"FleckRuntime.cs <span style='color:#111;'> 456B </span>","children":null,"spread":false}],"spread":false},{"title":"SubProtocolNegotiationFailureException.cs <span style='color:#111;'> 423B </span>","children":null,"spread":false}],"spread":false},{"title":"Fleck.Tests","children":[{"title":"WebSocketConnectionTests.cs <span style='color:#111;'> 6.41KB </span>","children":null,"spread":false},{"title":"QueuedStreamTests.cs <span style='color:#111;'> 11.95KB </span>","children":null,"spread":false},{"title":"SocketWrapperTests.cs <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"Fleck.Tests.csproj <span style='color:#111;'> 628B </span>","children":null,"spread":false},{"title":"FlashSocketPolicyRequestHandlerTests.cs <span style='color:#111;'> 858B </span>","children":null,"spread":false},{"title":"SubProtocolNegotiatorTests.cs <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"Hybi14DataFrameTests.cs <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"DefaultHandlerFactoryTests.cs <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"Hybi14DataFrame.cs <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"Hybi13HandlerTests.cs <span style='color:#111;'> 13.37KB </span>","children":null,"spread":false},{"title":"Draft76HandlerTests.cs <span style='color:#111;'> 5.15KB </span>","children":null,"spread":false},{"title":"WebSocketServerTests.cs <span style='color:#111;'> 3.79KB </span>","children":null,"spread":false},{"title":"RequestParserTests.cs <span style='color:#111;'> 5.31KB </span>","children":null,"spread":false},{"title":"AssemblyTests.cs <span style='color:#111;'> 336B </span>","children":null,"spread":false},{"title":"WebSocketConnectionInfoTests.cs <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"readme.markdown <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"appveyor.yml <span style='color:#111;'> 778B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明