winsock编写FTP遇到的问题
int logonseq[NUMLOGIN][100] = {
// this array stores all of the logon sequences for the various firewalls
// in blocks of 3 nums. 1st num is command to send, 2nd num is next point in logon sequence array
// if 200 series response is rec'd from server as the result of the command, 3rd num is next
// point in logon sequence if 300 series rec'd
{0,LO,3, 1,LO,6, 2,LO,ER}, // no firewall
{3,6,3, 4,6,ER, 5,ER,9, 0,LO,12, 1,LO,15, 2,LO,ER}, // SITE hostname
{3,6,3, 4,6,ER, 6,LO,9, 1,LO,12, 2,LO,ER}, // USER after logon
{7,3,3, 0,LO,6, 1,LO,9, 2,LO,ER}, //proxy OPEN
{3,6,3, 4,6,ER, 0,LO,9, 1,LO,12, 2,LO,ER}, // Transparent
{6,LO,3, 1,LO,6, 2,LO,ER}, // USER with no logon
{8,6,3, 4,6,ER, 0,LO,9, 1,LO,12, 2,LO,ER}, //USER fireID@remotehost
{9,ER,3, 1,LO,6, 2,LO,ER}, //USER remoteID@remotehost fireID
{10,LO,3, 11,LO,6, 2,LO,ER} // USER remoteID@fireID@remotehost
};
在网上和书上看到很多这段程序,说是针对不同防火墙的登陆序列,我查了很多书,不太明白数组里的数字是怎么得到的.在程序运行的时候是怎么运作的?
还望高人指点
谢谢
PS:其中有一本书是<<Visual C++网络通信协议分析与应用实现>> 人民邮电出版社
// this array stores all of the logon sequences for the various firewalls
// in blocks of 3 nums. 1st num is command to send, 2nd num is next point in logon sequence array
// if 200 series response is rec'd from server as the result of the command, 3rd num is next
// point in logon sequence if 300 series rec'd
{0,LO,3, 1,LO,6, 2,LO,ER}, // no firewall
{3,6,3, 4,6,ER, 5,ER,9, 0,LO,12, 1,LO,15, 2,LO,ER}, // SITE hostname
{3,6,3, 4,6,ER, 6,LO,9, 1,LO,12, 2,LO,ER}, // USER after logon
{7,3,3, 0,LO,6, 1,LO,9, 2,LO,ER}, //proxy OPEN
{3,6,3, 4,6,ER, 0,LO,9, 1,LO,12, 2,LO,ER}, // Transparent
{6,LO,3, 1,LO,6, 2,LO,ER}, // USER with no logon
{8,6,3, 4,6,ER, 0,LO,9, 1,LO,12, 2,LO,ER}, //USER fireID@remotehost
{9,ER,3, 1,LO,6, 2,LO,ER}, //USER remoteID@remotehost fireID
{10,LO,3, 11,LO,6, 2,LO,ER} // USER remoteID@fireID@remotehost
};
在网上和书上看到很多这段程序,说是针对不同防火墙的登陆序列,我查了很多书,不太明白数组里的数字是怎么得到的.在程序运行的时候是怎么运作的?
还望高人指点
谢谢
PS:其中有一本书是<<Visual C++网络通信协议分析与应用实现>> 人民邮电出版社
...全文
相关推荐
vb ftp上传
这种方式需要编写更多的代码来处理FTP协议的细节,但具有更高的灵活性。
VB制作的Ftp客户端软件
你可以设置Winsock控件的AsyncMode属性为True,然后处理BeginSendData和EndSendData事件。7. 错误处理:在编写FTP客户端时,错误处理是必不可少的部分。
基于vc下的ftp简单实现
Winsock是Windows操作系统中的网络编程接口,提供了标准的Berkeley套接字API,使得开发者能够方便地编写网络应用。为了创建FTP客户端,我们需要完成以下步骤:1.
Ftp客户端源代码及报告
**报告编写**:在项目完成后,通常需要编写技术报告,详细记录开发过程、遇到的问题、解决方案以及测试结果。这对于理解和改进代码至关重要,也有助于分享知识和经验。
FTP客户端源码-vc语言编写
在VC环境中编写FTP客户端,你需要理解以下关键点:1. **Winsock库**:Windows平台下的网络编程通常使用Winsock API,它为应用程序提供了TCP/IP协议接口。


