来自于http://chenke1215.blog.163.com/blog/static/124414520103611222617/最近在开发中遇到一个问题,就是如何判断远端服务器是否已经断开连接,如果断开那么需要重新连接。首先想到socket类的方法isClosed()、isConnecte....
分类:
其他好文 时间:
2014-05-05 11:03:21
阅读次数:
276
#include "stdafx.h"#include "windows.h"#include
using namespace std;int _tmain(int argc, _TCHAR* argv[]){ STARTUPINFO si;
PROCESS_INFORMATION...
分类:
其他好文 时间:
2014-05-05 10:31:18
阅读次数:
412
HTTP协议:简单对象访问协议,对应于应用层,HTTP协议是基于TCP连接的tcp协议:对应于传输层ip协议:对应于网络层TCP/IP是传输层协议,主要解决数据如何在网络中传输;而HTTP是应用层协议,主要解决如何包装数据。Socket是对TCP/IP协议的封装,Socket本身并不是协议,而是一个...
分类:
其他好文 时间:
2014-05-04 19:45:16
阅读次数:
376
中文版显示:Firefox 已经在运行,但是没有响应。如要打开新窗口,您必须先关闭该 Firefox 进程,或者重新启动您的系统。
英文版显示:Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or ...
分类:
系统相关 时间:
2014-05-04 17:44:21
阅读次数:
647
??
SQL Server online consultants came across an interesting scenario where one of our client was unable to restore a native SQL Server backup successfully performed from one instance running on M...
分类:
数据库 时间:
2014-05-04 17:42:50
阅读次数:
394
Oneofthemostremarkableachievementinthehistoryofmankindiscomputers.Anotheramazingfactaboutthisremarkableachievementcalledcomputersisthatitsacollectionofdifferentelectroniccomponents,andtheyworktogetherincoordinationtogiveyouameaningfuloutput.Weinourdaytodayl..
分类:
系统相关 时间:
2014-05-04 17:05:15
阅读次数:
608
Android网络编程概述首先,应该了解的几个问题:1)Android平台网络相关API接口a)
java.net.*(标准Java接口)java.net.*提供与联网有关的类,包括流、数据包套接字(socket)、Internet协议、常见Http处理等。比如:创建URL,以及URLConnect...
分类:
移动开发 时间:
2014-05-04 11:46:52
阅读次数:
480
IM标准协议有XMPP\IMPP\PRIM\SIP(SIMPLE)等,其中XMPP基于XML的协议,具备了很好的扩展性(依靠XML的域名空间)并且可以建立在TLS上使用SASL认证。1.文件比如图片、文档最好是依靠HTTP进行传输,而不使用XMPP的SOCKET连接通道2.二进制数据,依靠BASE6...
分类:
其他好文 时间:
2014-05-04 11:00:15
阅读次数:
350
测试中出错出错一# ./helloworld
-qwsQWSServerSocket::init: Function not implementedQWSServerSocket: unable to
create socket.QWSServerPrivate::initServer: serve...
分类:
其他好文 时间:
2014-05-04 09:56:40
阅读次数:
322
网络编程的概念是:多个计算机通过软件编程的方式进行数据传输来达到数据交互的功能。...
分类:
其他好文 时间:
2014-05-03 21:04:24
阅读次数:
298