随笔分类 -  Socket

摘要:C#中TCP粘包问题的解决方法 更新时间:2017年07月14日 10:39:25 作者:白云随风 这篇文章主要为大家详细介绍了C#中TCP粘包问题的解决方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下 一、TCP粘包产生的原理 1.TCP粘包是指发送方发送的若干包数据到接收方接收时粘成一包, 阅读全文
posted @ 2020-10-14 14:38 superstar 阅读(1426) 评论(0) 推荐(0)
摘要:using System; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading; namespace Player.Common.Sockets { /// <summary> 阅读全文
posted @ 2020-08-05 10:36 superstar 阅读(365) 评论(0) 推荐(0)
摘要:本文目录 [-点此收起]背景反向代理连接池数据包解析结语背景最近特别忙,博客久未更新。回顾了一下2010-2011年的一些.Net项目代码,觉得对初学者可能有一定参考作用,这里share一下。主要包括:TCP反向代理Socket连接池数据包解析反向代理一般的Web反向代理大家很熟悉了,主要是通过在客... 阅读全文
posted @ 2015-09-05 14:22 superstar 阅读(392) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-07-22 14:22 superstar 阅读(1) 评论(0) 推荐(0)
摘要:using System; using System.Text;using System.Net.Sockets;using System.Net.Mail;using System.Net;namespace DotNet.Utilities{ /// /// 网络操作相关的类 /// publicclassNetHelper { #region 检查设置的IP地址是否正确,返回正确的IP地址 /// /// 检查设置的IP地址是否正确,并返回正确的IP地址,无效IP地址返回"-1"。 /// /// 设置的IP地址 //public static string GetV 阅读全文
posted @ 2013-12-22 19:41 superstar 阅读(947) 评论(0) 推荐(0)
摘要:View Code using System.Text;using System.Net;using System.Net.Sockets;using System.Threading;using System.Collections;using System;using System.Collections.Generic;namespace SocketLibrary{ public delegate void BufferNotifyEventHandler(byte[] CaptureData,EndPoint FromIP); /// <summary> /// ... 阅读全文
posted @ 2012-06-22 18:08 superstar 阅读(765) 评论(2) 推荐(1)
摘要:最近半年以来都在从事suse10下的C++开发,开发工具也从豪门visual studio10降到了代码查看工具source insight。不过不得不说source insight阅读代码的效率绝对超过visual studio,虽然visual studio也能设置哪些功能,但真心没source insight顺手。不过悲剧的就是写代码的支持比文本好不了多少,调试的话,只能上传到suse10服务器上去然后慢慢的gdb调试了,最头大的就是那个makefile的编写,实在让人累。还是怀念windows下那种豪华的日子。 废话不多说了,我写这篇文章不是为了诉苦的,只是为了继续写网络这边的。以前. 阅读全文
posted @ 2012-05-31 23:33 superstar 阅读(406) 评论(0) 推荐(0)
摘要:socket发送和接受tcp信息包格式的定义(2011-07-29 15:05:17)转载▼标签:杂谈分类: Delphi编程下面为信息包的格式和内容数据包格式如下图所示,所包含的内容从左到右进行传输:包头中的信息全部为网络字节顺序!序号字段名称长度(Bytes)类型(C++)字段说明1head2Unsigned Short包头标识,固定为0xFFFF2version2Unsigned Short版本信息,当前为0x00303length2Unsigned Short包括包头的全部包体长度4command2Unsigned Short命令号5status4Unsigned Integer应答状 阅读全文
posted @ 2012-05-21 19:08 superstar 阅读(4576) 评论(0) 推荐(0)