常用网络端口简介TCP/UDP端口可分为3大类, 按端口号分:(1)公认端口(Well Known Ports):从0到1023,它们紧密绑定(bind)于一些服务。通常这些端口的通讯明确表明了某种服务的协议。不可随意更改. 例如:80端口实际上总是HTTP通讯。 (2)注册端口(Registered Ports):从1024到49151。它们松散地绑定于一些服务。也就是说有许多服务绑定于这些端口,这些端口同样用于许多其它目的。例如:许多系统处理动态端口从1024左右开始。(3)动态的(和/或)私有端口(Dynamic and/or Private Ports):从49152到65535。理论 Read More
posted @ 2012-10-19 21:47 godjob Views(5735) Comments(0) Diggs(0) Edit
// hello.cpp : 定义控制台应用程序的入口点。//#define WPCAP#define HAVE_REMOTE#include "stdafx.h"#include <iostream>#include <algorithm>#include <string>#include <vector>/** we do not want the warnings about the old deprecated and unsecure CRT functions* since these examples can b Read More
posted @ 2012-10-19 20:45 godjob Views(149) Comments(0) Diggs(0) Edit