资源简介
SuperSocket网络通信ClientEngine客户端部分
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperSocket.Protobase;
using System.Net;
namespace SuperSocket.ClientEngine
{
public class EasyClient : EasyClientbase
{
private Action m_Handler;
public void Initialize(IReceiveFilter receiveFilter Action handler)
where TPackageInfo : IPackageInfo
{
PipeLineProcessor = new DefaultPipelineProcessor(receiveFilter);
m_Handler = (p) => handler((TPackageInfo)p);
}
protected override void HandlePackage(IPackageInfo package)
{
var handler = m_Handler;
if (handler == null)
return;
handler(package);
}
}
public class EasyClient : EasyClientbase
where TPackageInfo : IPackageInfo
{
public event EventHandler> NewPackageReceived;
public EasyClient()
{
}
public virtual void Initialize(IReceiveFilter receiveFilter)
{
PipeLineProcessor = new DefaultPipelineProcessor(receiveFilter);
}
protected override void HandlePackage(IPackageInfo package)
{
var handler = NewPackageReceived;
if (handler == null)
return;
handler(this new PackageEventArgs((TPackageInfo)package));
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-04-24 08:11 SuperSocket.ClientEngine-master\
文件 2518 2017-04-24 08:11 SuperSocket.ClientEngine-master\.gitattributes
文件 539 2017-04-24 08:11 SuperSocket.ClientEngine-master\.gitignore
文件 59 2017-04-24 08:11 SuperSocket.ClientEngine-master\.travis.yml
文件 131 2017-04-24 08:11 SuperSocket.ClientEngine-master\Build.bat
目录 0 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\
文件 20589 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ASCIIEncoding.cs
文件 3289 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\Common.WP71.csproj
文件 6766 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ConcurrentBatchQueue.Net20.cs
文件 6459 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ConcurrentBatchQueue.cs
文件 5995 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ConnectAsyncExtension.Net.cs
文件 851 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ConnectAsyncExtension.Net35.cs
文件 2133 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ConnectAsyncExtension.Net40.cs
文件 1533 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ConnectAsyncExtension.Net45.cs
文件 610 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ConnectAsyncExtension.Silverlight.cs
文件 472 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ConnectAsyncExtension.WindowsPhone.cs
文件 1306 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ConnectAsyncExtension.cs
文件 383 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\DnsEndPoint.cs
文件 270 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\ExtensionAttribute.cs
文件 6262 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\Extensions.cs
文件 292 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\GenericDelegates.Action.cs
文件 420 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\GenericDelegates.Func.cs
文件 621 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\GenericDelegates.cs.txt
文件 1258 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\IBatchQueue.cs
文件 271 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\IProxyConnector.cs
文件 1921 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\NameValueCollection.cs
文件 885 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\PosList.cs
目录 0 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\Properties\
文件 335 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\Properties\AssemblyInfo.MonoDroid.cs
文件 335 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\Properties\AssemblyInfo.MonoTouch.cs
文件 334 2017-04-24 08:11 SuperSocket.ClientEngine-master\Common\Properties\AssemblyInfo.Net20.cs
............此处省略152个文件信息
- 上一篇:简易RLC测量仪
- 下一篇:DoDAF2.0国防部体系框架
相关资源
- rabbitmq-dotnet-client-3.6.4-dotnet-4.6.1.rar
- TCP/IP协议族第四版习题答案
- Internetworking With TCP/IP Volume 1, 6th Ed
- 华工计网编程实验
- windows xp client TO vxworks FTP server
- tcpdump(tcpdump-4.9.2.tar.gz & libpcap-1.8.1
- WCS Socket 通讯源码
- OPC2Modbus ,OPC server 协议转换成 Modbu
- Unity + Socket + Protobuff+异步+粘包拆包断
- 通讯调试工具
- IMagineworldClient_ML_V02.00.02.26
- 安卓app之间的socket通信,支持多线程
- SocketCoder语音/视频会议模块源码2013
- 端口监听工具
- qt利用tcp通信相互发送图片
- usb-over-network-client.rar
- netty搭建tcp服务,粘拆包解决
- ESP8266的 TCP通信(server)
- ESP8266的 TCP通信
- 车载wince音乐播放器
- TCP/IP网络互连--卷I 第5版•中文版
- window 网络调试助手 tcp/udp
- 基于CSocket的局域网聊天和文件传输
- 通用TCP/UDP异步SOCKET通讯封装及Demo
- LPC1768 LwIP UDP Client 发送数据+测试网
- 通讯猫-mqtt测试软件
- WinTcpS7_SmartV35.rar
- RtmpClient.rar
- instantclient-odbc-windows.x64-11.2.0.3.0.zip
- MODBUS+TCP+RTU+ASCII调试工具
评论
共有 条评论