实例介绍
稍加备注的SuperWebSocket源代码,本来是官方下载下来的源代码,以供学习之用!
【实例截图】
【核心代码】
4744302542910207101.rar
└── SuperWebSocket
├── App.config
├── Build.bat
├── Cloud
│ └── WindowsAzure
│ ├── AzureHost
│ │ ├── AzureHost.ccproj
│ │ ├── ServiceConfiguration.Cloud.cscfg
│ │ ├── ServiceConfiguration.Local.cscfg
│ │ ├── ServiceDefinition.build.csdef
│ │ └── ServiceDefinition.csdef
│ ├── SuperWebSocketWorkerRole
│ │ ├── app.config
│ │ ├── Config
│ │ │ └── log4net.config
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SuperWebSocketWorkerRole.csproj
│ │ └── WorkerRole.cs
│ └── WindowsAzure.sln
├── GlobalAssemblyInfo.cs
├── LICENSE.TXT
├── log4net.config
├── log4net.unix.config
├── PerformanceTest
│ ├── PerformanceTest.sln
│ ├── TestClient
│ │ ├── app.config
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── TestClient.csproj
│ ├── TestServer
│ │ ├── Config
│ │ ├── ECHO.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── SuperSocket.SocketService.exe.config
│ │ ├── TestAppServer.cs
│ │ ├── TestServer.csproj
│ │ └── TestSession.cs
│ └── TestSingleClient
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── TestSingleClient.csproj
├── README.TXT
├── Reference
│ ├── Json.NET
│ │ ├── Net35
│ │ │ └── Newtonsoft.Json.dll
│ │ └── Net40
│ │ └── Newtonsoft.Json.dll
│ ├── log4net.dll
│ ├── nunit.framework.dll
│ ├── SuperSocket
│ │ ├── Net35
│ │ │ ├── InstallService.bat
│ │ │ ├── RunServer.bat
│ │ │ ├── SuperSocket.Common.dll
│ │ │ ├── SuperSocket.Facility.dll
│ │ │ ├── SuperSocket.Management.Server.dll
│ │ │ ├── SuperSocket.Management.Shared.dll
│ │ │ ├── SuperSocket.SocketBase.dll
│ │ │ ├── SuperSocket.SocketEngine.dll
│ │ │ ├── SuperSocket.SocketService.exe
│ │ │ ├── System.Threading.dll
│ │ │ └── UninstallService.bat
│ │ └── Net40
│ │ ├── InstallService.bat
│ │ ├── RunServer.bat
│ │ ├── SuperSocket.Common.dll
│ │ ├── SuperSocket.Facility.dll
│ │ ├── SuperSocket.Management.Server.dll
│ │ ├── SuperSocket.Management.Shared.dll
│ │ ├── SuperSocket.SocketBase.dll
│ │ ├── SuperSocket.SocketEngine.dll
│ │ ├── SuperSocket.SocketService.exe
│ │ └── UninstallService.bat
│ └── WebSocket4Net
│ ├── Net35
│ │ └── WebSocket4Net.dll
│ └── Net40
│ └── WebSocket4Net.dll
├── Samples
│ ├── CommandAssembly
│ │ ├── bin
│ │ │ └── Debug
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ ├── SuperSocket.Common.dll
│ │ │ ├── SuperSocket.SocketBase.dll
│ │ │ ├── SuperWebSocket.dll
│ │ │ ├── SuperWebSocket.pdb
│ │ │ ├── SuperWebSocket.Samples.CommandAssembly.dll
│ │ │ ├── SuperWebSocket.Samples.CommandAssembly.pdb
│ │ │ └── SuperWebSocket.Service.exe.config
│ │ ├── CommandAssembly.csproj
│ │ ├── CommandAssembly.Net35.csproj
│ │ ├── ECHO.cs
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── CommandAssembly.csproj.FileListAbsolute.txt
│ │ │ ├── CommandAssembly.Net35.csproj.FileListAbsolute.txt
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── ResolveAssemblyReference.cache
│ │ │ ├── SuperWebSocket.Samples.CommandAssembly.dll
│ │ │ ├── SuperWebSocket.Samples.CommandAssembly.pdb
│ │ │ └── TempPE
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── QUIT.cs
│ │ ├── readme.txt
│ │ └── SuperWebSocket.Service.exe.config
│ ├── CustomSession
│ │ ├── bin
│ │ │ └── Debug
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ ├── SuperSocket.Common.dll
│ │ │ ├── SuperSocket.SocketBase.dll
│ │ │ ├── SuperWebSocket.dll
│ │ │ ├── SuperWebSocket.pdb
│ │ │ ├── SuperWebSocket.Samples.CustomSession.dll
│ │ │ ├── SuperWebSocket.Samples.CustomSession.pdb
│ │ │ └── SuperWebSocket.Service.exe.config
│ │ ├── Command
│ │ │ └── BRCT.cs
│ │ ├── CRMAppServer.cs
│ │ ├── CRMSession.cs
│ │ ├── CustomSession.csproj
│ │ ├── CustomSession.Net35.csproj
│ │ ├── JsonObject
│ │ │ └── BroadcastMessage.cs
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── CustomSession.csproj.FileListAbsolute.txt
│ │ │ ├── CustomSession.Net35.csproj.FileListAbsolute.txt
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── SuperWebSocket.Samples.CustomSession.dll
│ │ │ ├── SuperWebSocket.Samples.CustomSession.pdb
│ │ │ └── TempPE
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── readme.txt
│ │ └── SuperWebSocket.Service.exe.config
│ ├── JsonCommandAssembly
│ │ ├── bin
│ │ │ └── Debug
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ ├── SuperSocket.Common.dll
│ │ │ ├── SuperSocket.SocketBase.dll
│ │ │ ├── SuperWebSocket.dll
│ │ │ ├── SuperWebSocket.pdb
│ │ │ ├── SuperWebSocket.Samples.JsonCommandAssembly.dll
│ │ │ ├── SuperWebSocket.Samples.JsonCommandAssembly.pdb
│ │ │ └── SuperWebSocket.Service.exe.config
│ │ ├── Command
│ │ │ ├── ADD.cs
│ │ │ ├── ADDX.cs
│ │ │ ├── CHAT.cs
│ │ │ └── ECHO.cs
│ │ ├── JsonCommandAssembly.csproj
│ │ ├── JsonCommandAssembly.Net35.csproj
│ │ ├── JsonObject
│ │ │ ├── AddParameter.cs
│ │ │ ├── AddResult.cs
│ │ │ └── ChatMessage.cs
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── JsonCommandAssembly.csproj.FileListAbsolute.txt
│ │ │ ├── JsonCommandAssembly.Net35.csproj.FileListAbsolute.txt
│ │ │ ├── ResolveAssemblyReference.cache
│ │ │ ├── SuperWebSocket.Samples.JsonCommandAssembly.dll
│ │ │ ├── SuperWebSocket.Samples.JsonCommandAssembly.pdb
│ │ │ └── TempPE
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── readme.txt
│ │ └── SuperWebSocket.Service.exe.config
│ ├── SuperWebSocketWeb
│ │ ├── App_Data
│ │ ├── bin
│ │ │ ├── log4net.dll
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ ├── SuperSocket.Common.dll
│ │ │ ├── SuperSocket.Facility.dll
│ │ │ ├── SuperSocket.SocketBase.dll
│ │ │ ├── SuperSocket.SocketEngine.dll
│ │ │ ├── SuperWebSocket.dll
│ │ │ ├── SuperWebSocket.pdb
│ │ │ ├── SuperWebSocketWeb.dll
│ │ │ └── SuperWebSocketWeb.pdb
│ │ ├── clientaccesspolicy.xml
│ │ ├── ClientBin
│ │ │ └── WebSocket4Net.JsBridge.xap
│ │ ├── Config
│ │ │ ├── log4net.config
│ │ │ └── log4net.unix.config
│ │ ├── Default.aspx
│ │ ├── Default.aspx.cs
│ │ ├── Default.aspx.designer.cs
│ │ ├── Global.asax
│ │ ├── Global.asax.cs
│ │ ├── Images
│ │ │ └── white-top-bottom.gif
│ │ ├── LiveChat.aspx
│ │ ├── LiveChat.aspx.cs
│ │ ├── LiveChat.aspx.designer.cs
│ │ ├── LiveChatWithBridge.aspx
│ │ ├── LiveChatWithBridge.aspx.cs
│ │ ├── LiveChatWithBridge.aspx.designer.cs
│ │ ├── localhost.pfx
│ │ ├── Logs
│ │ │ ├── debug.log
│ │ │ ├── debug.log20121130
│ │ │ ├── debug.log20130304
│ │ │ ├── debug.log20130307
│ │ │ ├── err.log
│ │ │ ├── err.log20121130
│ │ │ ├── err.log20130304
│ │ │ ├── err.log20130306
│ │ │ ├── err.log20130307
│ │ │ ├── info.log
│ │ │ ├── info.log20121130
│ │ │ ├── info.log20130304
│ │ │ ├── info.log20130306
│ │ │ ├── info.log20130307
│ │ │ ├── perf.log
│ │ │ ├── perf.log20121130
│ │ │ ├── perf.log20130304
│ │ │ ├── perf.log20130306
│ │ │ └── perf.log20130307
│ │ ├── obj
│ │ │ └── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── Package
│ │ │ ├── ResolveAssemblyReference.cache
│ │ │ ├── SuperWebSocketWeb.csproj.FileListAbsolute.txt
│ │ │ ├── SuperWebSocketWeb.dll
│ │ │ ├── SuperWebSocketWeb.pdb
│ │ │ └── TempPE
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Scripts
│ │ │ ├── jquery.js
│ │ │ ├── Silverlight.js
│ │ │ └── WebSocketEx.js
│ │ ├── supersocket.pfx
│ │ ├── SuperWebSocketWeb.csproj
│ │ ├── SuperWebSocketWeb.csproj.user
│ │ ├── SuperWebSocketWeb.Mono.csproj
│ │ ├── SuperWebSocketWeb.Publish.xml
│ │ ├── System.Net.Trace.log
│ │ ├── Web.config
│ │ ├── Web.Debug.config
│ │ └── Web.Release.config
│ └── SuperWebSocketWebNet35
│ ├── App_Data
│ ├── bin
│ │ ├── log4net.dll
│ │ ├── Newtonsoft.Json.dll
│ │ ├── SuperSocket.Common.dll
│ │ ├── SuperSocket.SocketBase.dll
│ │ ├── SuperWebSocket.dll
│ │ ├── SuperWebSocket.pdb
│ │ └── System.Threading.dll
│ ├── Config
│ │ ├── log4net.config
│ │ └── log4net.unix.config
│ ├── Default.aspx
│ ├── Default.aspx.cs
│ ├── Default.aspx.designer.cs
│ ├── Global.asax
│ ├── Global.asax.cs
│ ├── Images
│ │ └── white-top-bottom.gif
│ ├── LiveChat.aspx
│ ├── LiveChat.aspx.cs
│ ├── LiveChat.aspx.designer.cs
│ ├── localhost.pfx
│ ├── obj
│ │ └── Debug
│ │ ├── build.force
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── ResolveAssemblyReference.cache
│ │ ├── SuperWebSocketWebNet35.csproj.FileListAbsolute.txt
│ │ └── TempPE
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Scripts
│ │ └── jquery.js
│ ├── supersocket.pfx
│ ├── SuperWebSocketWebNet35.csproj
│ ├── Web.config
│ ├── Web.Debug.config
│ └── Web.Release.config
├── SuperWebSocket
│ ├── bin
│ │ └── Debug
│ │ ├── log4net.dll
│ │ ├── Newtonsoft.Json.dll
│ │ ├── SuperSocket.Common.dll
│ │ ├── SuperSocket.SocketBase.dll
│ │ ├── SuperWebSocket.dll
│ │ └── SuperWebSocket.pdb
│ ├── Command
│ │ ├── Binary.cs
│ │ ├── Close.cs
│ │ ├── Continuation.cs
│ │ ├── FragmentCommand.cs
│ │ ├── HandShake.cs
│ │ ├── Ping.cs
│ │ ├── Plain.cs
│ │ ├── Pong.cs
│ │ └── Text.cs
│ ├── Config
│ │ ├── CommandConfigCollection.cs
│ │ ├── CommandConfig.cs
│ │ ├── SubProtocolConfigCollection.cs
│ │ └── SubProtocolConfig.cs
│ ├── Extensions.cs
│ ├── JsonWebSocketSession.cs
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── ResolveAssemblyReference.cache
│ │ ├── SuperWebSocket.csproj.FileListAbsolute.txt
│ │ ├── SuperWebSocket.dll
│ │ ├── SuperWebSocket.pdb
│ │ └── TempPE
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Protocol
│ │ ├── CloseStatusCodeHybi10.cs
│ │ ├── CloseStatusCodeRfc6455.cs
│ │ ├── DraftHybi00Processor.cs
│ │ ├── DraftHybi10Processor.cs
│ │ ├── FramePartReader
│ │ │ ├── DataFramePartReader.cs
│ │ │ ├── ExtendedLenghtReader.cs
│ │ │ ├── FixPartReader.cs
│ │ │ ├── IDataFramePartReader.cs
│ │ │ ├── MaskKeyReader.cs
│ │ │ └── PayloadDataReader.cs
│ │ ├── HandshakeRequest.cs
│ │ ├── ICloseStatusCode.cs
│ │ ├── IProtocolProcessor.cs
│ │ ├── IWebSocketFragment.cs
│ │ ├── MultipleProtocolSwitchProcessor.cs
│ │ ├── OpCode.cs
│ │ ├── PlainFragment.cs
│ │ ├── ProtocolProcessorBase..cs
│ │ ├── Rfc6455Processor.cs
│ │ ├── WebSocketDataFrame.cs
│ │ ├── WebSocketDataFrameReader.cs
│ │ ├── WebSocketDataReader.cs
│ │ ├── WebSocketHeaderReader.cs
│ │ ├── WebSocketReaderBase.cs
│ │ └── WebSocketSecKey3Reader.cs
│ ├── SubProtocol
│ │ ├── AsyncJsonSubCommand.cs
│ │ ├── BasicSubCommandParser.cs
│ │ ├── BasicSubProtocol.cs
│ │ ├── IRequestInfoParser.cs
│ │ ├── ISubCommand.cs
│ │ ├── ISubProtocol.cs
│ │ ├── JsonSubCommandBase.cs
│ │ ├── JsonSubCommand.cs
│ │ ├── SubCommandBase.cs
│ │ ├── SubProtocolBase.cs
│ │ └── SubRequestInfo.cs
│ ├── SuperWebSocket.csproj
│ ├── SuperWebSocket.NET35.csproj
│ ├── WebSocketConst.cs
│ ├── WebSocketProtocol.cs
│ ├── WebSocketServer.cs
│ └── WebSocketSession.cs
├── SuperWebSocket.sln
├── superwebsocket.snk
├── SuperWebSocket.suo
└── SuperWebSocketTest
├── bin
│ └── Debug
│ ├── log4net.dll
│ ├── Newtonsoft.Json.dll
│ ├── nunit.framework.dll
│ ├── SuperSocket.Common.dll
│ ├── SuperSocket.SocketBase.dll
│ ├── SuperSocket.SocketEngine.dll
│ ├── SuperWebSocket.dll
│ ├── SuperWebSocket.pdb
│ ├── SuperWebSocketTest.dll
│ ├── SuperWebSocketTest.pdb
│ └── WebSocket4Net.dll
├── Command
│ ├── ECHO.cs
│ └── QUIT.cs
├── obj
│ └── Debug
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── ResolveAssemblyReference.cache
│ ├── SuperWebSocketTest.csproj.FileListAbsolute.txt
│ ├── SuperWebSocketTest.dll
│ ├── SuperWebSocketTest.NET35.csproj.FileListAbsolute.txt
│ ├── SuperWebSocketTest.pdb
│ └── TempPE
├── Properties
│ └── AssemblyInfo.cs
├── SubProtocolWebSocketTest.cs
├── SuperWebSocketTest.csproj
├── SuperWebSocketTest.NET35.csproj
├── WebSocketClientTest.cs
├── WebSocketFramingTest.cs
├── WebSocketHybi10Test.cs
├── WebSocketRawTest.cs
└── WebSocketTestBase.cs
94 directories, 322 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论