FileZilla is an open source FTP server written in C++. By analyzing its source code, you can master C++ network programming and high concurrent server design. Today Xiaobian will lead everyone to learn the source code analysis of FileZillaFTP server. Many netizens may say that this is what programmers should know. Actually, if you understand it, there is no harm to you, maybe you can use it one day. What do you say?
After downloading, install and select the source, which installs the source code.
After the installation is complete, you can directly open the FileZilla server.sln that comes with the project. This is the vs 2003.net project, which has three projects,
FZS Interface: This is the FTP server settings. And monitoring interface
Service: This is the core FTP server part
GFtp: Can't open, I don't know what to do, foreigners will be so sloppy? :)
Direct compilation is wrong, mainly FileZilla needs to rely on two third-party packages: zlib (compression algorithm package) and regexp (regular expression package)
Get zlib first, download, unpack, generate directory zlib123 ,use. Net 2003 open zlib123\\projects\\visualc6\\zlib.dsw
Open Generate|
Configuration Manager, set the active solution configuration: DLL Release, compile and generate project zlib, after successful, will generate zlib1.lib and zlib1.dll in the directory Win32_DLL_Release
Then, regexp uses boost third party package There are many common C++ components inside.
After downloading and unpacking, under cmd,
Step 1: You need to compile bjm, this is the compiler for compiling boost, halo
cd boost_1_33_1\\tools\\ Build\\jam_src
build.bat
In the current bin.ntx86 directory, the bjam.exe file is generated.
Step 2: Compile boost
cd boost_1_33_1
Copy bjam.exe just generated
set VC7_ROOT="C:\\Program Files\\Microsoft Visual Studio.NET 2003\\Vc7"
bjam "-sTOOLS=vc7" install
This step takes a long time, when we only use the regexp package inside, it should I can only compile this package, but I have not studied it. Previous12Next page Total 2 pages
A friend reported that in the Windows 2003 system, it was unable to upload a large
The registry is like a database of the system. It is like the treasure pocket of a
Virtual Private Network (VPN) refers to the technology of establishing a private network on the publ
Everyone is familiar with network sharing. They all know that it is based on computer and uses the I
Setting of ASP.net environment under win2003
Experts solve Win 2003 can not upload large files have a coup
Explain the command line tool - Recovery Console
Windows 2003 emergency repair disk startup and use
Explain the configuration of the Web server under win2003
Create a trendy personality win2003 enjoy xp visual theme style
Empty.exe small program that makes it easy to free memory
How to ensure DNS security on Win 2003 domain
The master upgrades NT to 2003 with a coup
Campus Web Server Common Faults Inventory
What should I do with the noise of the Win7 system computer? Win7 system sound has a noise solution
IIS failed to start "The system could not find the specified path"
Where is the Win7 system log? How to view the system log
Win8.1 view computer running record tips
Simple operation to manually clear the Win8 system Windows.old file
IE home page has been tampered with recovery tutorial
Solve the perfect strategy for WinXP system boot automatic logout