using System; using System.Collections; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading; namespace Bend.Util { public class HttpProcessor { public TcpClient socket; public HttpServer srv; private Stream inputStream
利用irc协议的优点: 免费,不用购买服务器就可以实现稳定公网转发数据 开源,irc的客户端和开源库众多,省去了自己造轮子的时间 历史悠久,互联网诞生伊始就有irc 缺点:安全性比较差 简单协议接收可以用:https://kiwiirc.com/ 下面是发送客户端的源码: using System; using TechLifeForum; using System.Windows.Forms; using System.Timers; using System.Net.Sockets; usi
解决方案: 1. 在目标服务器上发布webservice,实现文件下载的方法. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.IO; using System.Data; namespace TRNWebService { /// <summary> /// FileHelperService
传人url运行(url以/结尾,例如:http://localhost:8080/web/ 监听这个url// 在浏览器 中输入 http://localhost:8080/web/?name=test或 http://localhost/web/?name=test,在浏览器就会出现Hello test 和一些Request头部相关信息. public void Run(string url) { using (HttpListener listerner = new HttpListener