<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Fyter's BLog]]></title><description><![CDATA[// Display new window here       m_bFyter?m_wndNewWindow.Create("wndclass_desked_gsk","VsTextEditPane"):true; ]]></description><link>https://blog.csdn.net/Fyter</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Fyter]]></copyright><item><title><![CDATA[Windows Phone 7 网络字节序列化（结构转字节）实现]]></title><link>https://blog.csdn.net/Fyter/article/details/6594284</link><guid>https://blog.csdn.net/Fyter/article/details/6594284</guid><author>Fyter</author><pubDate>Sat, 09 Jul 2011 10:30:46 +0800</pubDate><description><![CDATA[令人激动的Windows Phone 7 Mango（WP7）版本开放了Socket接口，虽有些Socket功能无法实现令人遗憾，但还是进步了一些。有了Socket我们就可以用其为我们传递Byte[]数据流，而我们的数据又经常保存在struct或者class中，但是WP7对这种结]]></description><category></category></item><item><title><![CDATA[异步Windows Socket包装，包括TCP与UDP，可处理粘包]]></title><link>https://blog.csdn.net/Fyter/article/details/6534075</link><guid>https://blog.csdn.net/Fyter/article/details/6534075</guid><author>Fyter</author><pubDate>Thu, 09 Jun 2011 14:50:00 +0800</pubDate><description><![CDATA[头文件struct IPAddress{	union {		struct IPV4Address		{			ULONG host;			USHORT port;		}address;		UINT64 _64;	};	static IPAddress Zero;	ULONG& GetHost(){return address.host;}]]></description><category></category></item><item><title><![CDATA[做服务器开发的朋友一定要看这篇文章，虽然是我转载的——全面认识服务器网卡：理论篇]]></title><link>https://blog.csdn.net/Fyter/article/details/6529036</link><guid>https://blog.csdn.net/Fyter/article/details/6529036</guid><author>Fyter</author><pubDate>Tue, 07 Jun 2011 10:41:00 +0800</pubDate><description><![CDATA[[09-03 10:44:14]出处：PConline作者：笨人责任编辑：gongjianhui  　　服务器和我们常见的PC一样，都是由CPU、主板、内存、硬盘、网卡等配件组成的。笨人跟大家讨论服务器的时候，发现很多朋友在习惯上，都对CPU、主板、内存、硬盘等部件比较在意，对网卡、电源等就不太重视了。大多数抱着有就行、能用就好的这种心理。其实上，在服务器里面，电源是一个相当关]]></description><category></category></item><item><title><![CDATA[局域网内远程调试命令行快速配置]]></title><link>https://blog.csdn.net/Fyter/article/details/6454986</link><guid>https://blog.csdn.net/Fyter/article/details/6454986</guid><author>Fyter</author><pubDate>Mon, 30 May 2011 16:18:00 +0800</pubDate><description><![CDATA[<br />X:/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/Remote Debugger/x86>msvsmon /noauth /anyuser /port:4016 /timeout:99999999 /nosecuritywarn /nostatus<br /> <br />/noauth 无验证<br />/anyuser 任意用户<br />/port 指定端口<br />/timeout 指定超时时间，默认无验证情况是15分钟]]></description><category></category></item><item><title><![CDATA[XNA正交投影矩阵原点在左上角]]></title><link>https://blog.csdn.net/Fyter/article/details/6423662</link><guid>https://blog.csdn.net/Fyter/article/details/6423662</guid><author>Fyter</author><pubDate>Mon, 16 May 2011 10:17:00 +0800</pubDate><description><![CDATA[// projection uses CreateOrthographicOffCenter to create 2d projection// matrix with 0,0 in the upper left.
basicEffect.Projection = Matrix.CreateOrthographicOffCenter
    (0, GraphicsDevice.Viewport.Width,
    GraphicsDevice.Viewport.Height, 0,
    0,]]></description><category></category></item><item><title><![CDATA[[转载]比较好的Socket send recv closesocket shutdown LINGER解释]]></title><link>https://blog.csdn.net/Fyter/article/details/6396977</link><guid>https://blog.csdn.net/Fyter/article/details/6396977</guid><author>Fyter</author><pubDate>Thu, 05 May 2011 15:28:00 +0800</pubDate><description><![CDATA[<br />对于send函数： <br /><br />send函数只负责将数据提交给协议层。 <br />当调用该函数时，send先比较待发送数据的长度len和套接字s的发送缓冲区的长度，如果len大于s的发送缓冲区的长度，该函数返回SOCKET_ERROR； <br />如果len小于或者等于s的发送缓冲区的长度，那么send先检查协议是否正在发送s的发送缓冲中的数据； <br />如果是就等待协议把数据发送完，如果协议还没有开始发送s的发送缓冲中的数据或者s的发送缓冲中没有数据，那么send就比较s的]]></description><category></category></item><item><title><![CDATA[开发经验分享]]></title><link>https://blog.csdn.net/Fyter/article/details/6369533</link><guid>https://blog.csdn.net/Fyter/article/details/6369533</guid><author>Fyter</author><pubDate>Thu, 28 Apr 2011 14:29:00 +0800</pubDate><description><![CDATA[<br />网络软件的开发周期有点估不准，本来计划3周写完P2P的，虽然2周吧代码全写完了，结果搞了4周了，还没测完。<br />昨天一个API：HttpSendRequest卡死，设置超时也没用，折腾我半天时间，老外也没有解决的，今天变通的解决一下，还是很纠结。<br />HttpOpenRequest返回122错误，但是运行是成功的，这个无法解决<br />HttpSendRequest返回12002错误，这个是随机的，有时卡死，有时返回，InternetSetOption设置超时是没用的。<br />]]></description><category></category></item><item><title><![CDATA[指针类 目的：使代码干净，降低了一点效率]]></title><link>https://blog.csdn.net/Fyter/article/details/6361032</link><guid>https://blog.csdn.net/Fyter/article/details/6361032</guid><author>Fyter</author><pubDate>Mon, 25 Apr 2011 11:11:00 +0800</pubDate><description><![CDATA[#pragma oncetemplate<class T>
struct pointer
{
	T* ref;
 
	pointer():ref(0)
	{
	}
 
	pointer(T* _p):ref(_p)
	{
	}
 
	T* operator -> ()
	{
		return ref;
	}
 
	pointer<T>& operator = (const pointer<T> _right)
	{
		ref = _right.ref;
		ret]]></description><category></category></item><item><title><![CDATA[std::string split 标准库字符串切割]]></title><link>https://blog.csdn.net/Fyter/article/details/6361019</link><guid>https://blog.csdn.net/Fyter/article/details/6361019</guid><author>Fyter</author><pubDate>Mon, 25 Apr 2011 11:08:00 +0800</pubDate><description><![CDATA[#include <string>#include <sstream>stringstream ss(blocks->Value());
string sub;
while(getline(ss,sub,','))// ',' 是切割字符
{
	if(sub.empty())continue;
	sub.erase(0, sub.find_first_not_of(" /t/n/r"));// 去掉前面多余的空格
	sub.erase(sub.find_last_not_of(" /t/n/r"]]></description><category></category></item><item><title><![CDATA[ValidateRequest=false 无效(.Net 4.0 )]]></title><link>https://blog.csdn.net/Fyter/article/details/6336182</link><guid>https://blog.csdn.net/Fyter/article/details/6336182</guid><author>Fyter</author><pubDate>Wed, 20 Apr 2011 15:11:00 +0800</pubDate><description><![CDATA[当我们投递数据到Asp.net页面时有以下异常：异常：从客户端(code)中检测到有潜在危险的Request.Form 值并且设置在页面或web.config设置了ValidateRequest="false"均无效时，需要用下面的代码：<configuration>  <system.web>    <compilation debug="true" targetFramework="4.0"/>    <httpRuntime  requestValidationMode="2.0" />]]></description><category></category></item><item><title><![CDATA[XNA Reach AlphaBlend]]></title><link>https://blog.csdn.net/Fyter/article/details/6335255</link><guid>https://blog.csdn.net/Fyter/article/details/6335255</guid><author>Fyter</author><pubDate>Wed, 20 Apr 2011 10:23:00 +0800</pubDate><description><![CDATA[spriteBatch = new SpriteBatch(GraphicsDevice);
 
bs.AlphaSourceBlend = Blend.SourceAlpha;
bs.AlphaDestinationBlend = Blend.InverseSourceAlpha;用XNA开发个编辑器，发现不能正确绘制PNG图片，所以需要AlphaBlend，于是写了上面的混合代码，但是<br />我的电脑不支持HiDef，只能Reach，并提示“XNA Framework Reach profil]]></description><category></category></item><item><title><![CDATA[带有Cookie功能的HTTP访问函数，GET，PUT/POST]]></title><link>https://blog.csdn.net/Fyter/article/details/6326244</link><guid>https://blog.csdn.net/Fyter/article/details/6326244</guid><author>Fyter</author><pubDate>Fri, 15 Apr 2011 17:24:00 +0800</pubDate><description><![CDATA[#define AFX_INET_SERVICE_FTP        INTERNET_SERVICE_FTP
#define AFX_INET_SERVICE_HTTP       INTERNET_SERVICE_HTTP
#define AFX_INET_SERVICE_GOPHER     INTERNET_SERVICE_GOPHER
 
#define AFX_INET_SERVICE_UNK        0x1000
#define AFX_INET_SERVICE_FILE  ]]></description><category></category></item><item><title><![CDATA[HTTP 协议 Set-Cookie]]></title><link>https://blog.csdn.net/Fyter/article/details/6323139</link><guid>https://blog.csdn.net/Fyter/article/details/6323139</guid><author>Fyter</author><pubDate>Thu, 14 Apr 2011 14:40:00 +0800</pubDate><description><![CDATA[Set-Cookie HttpOnly]]></description><category></category></item><item><title><![CDATA[Windows Phone 7 体感开发指南（振动、GPS、重力感应、陀螺仪/罗盘、环境光/光线检测、趋近/贴近检测）]]></title><link>https://blog.csdn.net/Fyter/article/details/6267631</link><guid>https://blog.csdn.net/Fyter/article/details/6267631</guid><author>Fyter</author><pubDate>Tue, 22 Mar 2011 13:12:00 +0800</pubDate><description><![CDATA[Microsoft.Devices.VibrateController.Default 震动控制器 （static）Microsoft.Devices.Sensors.Accelerometer 重力加速器System.Device.Location.GeoCoordinate 陀螺仪（海拔，航向，垂直，水平，精度，纬度……）System.Device.Location.GeoCoordinateWatcher 位置信息（GPS）<br /> <br />官方：接近、光线感应器 第一个WP7系统版本不支持第]]></description><category></category></item><item><title><![CDATA[ASP.net POST 其他页面地址时提示405.0 - Method Not Allowed的解决]]></title><link>https://blog.csdn.net/Fyter/article/details/6258576</link><guid>https://blog.csdn.net/Fyter/article/details/6258576</guid><author>Fyter</author><pubDate>Fri, 18 Mar 2011 11:35:00 +0800</pubDate><description><![CDATA[<br />ASP.net POST 其他页面地址时提示405.0 - Method Not Allowed的解决<br /> <br />我遇到时POST的地址写成了http://domain//dir<br />改为http://domain/dir/<br />即可，这是IIS的一个特性，也许其他Web服务器不会这样]]></description><category></category></item><item><title><![CDATA[编译得到不同结果的原因之一]]></title><link>https://blog.csdn.net/Fyter/article/details/6253442</link><guid>https://blog.csdn.net/Fyter/article/details/6253442</guid><author>Fyter</author><pubDate>Wed, 16 Mar 2011 14:20:00 +0800</pubDate><description><![CDATA[<br />Visual Studio<br />如果将项目放到不同的解决方案中，得到了不同的编译结果，那么优先考虑解决方案对项目的编译类型设置，比如Debug/Release。]]></description><category></category></item><item><title><![CDATA[Windows 临界区简单封装，没有TryLock]]></title><link>https://blog.csdn.net/Fyter/article/details/6233631</link><guid>https://blog.csdn.net/Fyter/article/details/6233631</guid><author>Fyter</author><pubDate>Wed, 09 Mar 2011 11:28:00 +0800</pubDate><description><![CDATA[// headerclass Locker
{
	CRITICAL_SECTION m_hCriticalSection;
public:
	Locker(void);
	~Locker(void);
 
	void Lock();
	void Unloak();
};
 
 
class AutoLock
{
	Locker* m_pLock;
public:
	AutoLock(Locker& locker)
	{
		m_pLock = &locker;
		m_]]></description><category></category></item><item><title><![CDATA[使用MFC类CInternetSession直接访问HTTP内容，支持断点续传，可轻松改为Windows API方式]]></title><link>https://blog.csdn.net/Fyter/article/details/6233620</link><guid>https://blog.csdn.net/Fyter/article/details/6233620</guid><author>Fyter</author><pubDate>Wed, 09 Mar 2011 11:25:00 +0800</pubDate><description><![CDATA[enum HTTPREQUESTRESULT
{
	RES_REQ_DONE_OK,
	RES_REQ_ERROR_HTTP,
	RES_REQ_ERROR_SERVER,
	RES_REQ_ERROR_NET
};
 
 
// 请求
HTTPREQUESTRESULT RequestHttp(LPCTSTR url)
{
	CInternetSession session;
	DWORD dwReadLen = 0;
	CString szRequestHeader;// H]]></description><category></category></item><item><title><![CDATA[使用Windows系统API计算数据和文件的MD5哈希值,支持大文件]]></title><link>https://blog.csdn.net/Fyter/article/details/6233594</link><guid>https://blog.csdn.net/Fyter/article/details/6233594</guid><author>Fyter</author><pubDate>Wed, 09 Mar 2011 11:16:00 +0800</pubDate><description><![CDATA[// 计算数据的MD5字符串
string ComputeMD5(const char* szData, size_t len)
// 计算文件的MD5字符串，支持大文件(large file)
string ComputeFileMD5(const TCHAR* szFilename)
]]></description><category></category></item><item><title><![CDATA[CRT 内存泄漏检测]]></title><link>https://blog.csdn.net/Fyter/article/details/6233581</link><guid>https://blog.csdn.net/Fyter/article/details/6233581</guid><author>Fyter</author><pubDate>Wed, 09 Mar 2011 11:14:00 +0800</pubDate><description><![CDATA[#define _CRTDBG_MAP_ALLOC #include #include #include "debug_new.h" ]]></description><category></category></item></channel></rss>