資源簡介
在win7普通家庭版下,想搭建FTP服務器而又不想升級的,可以用這個,本人親測,成功搭建
代碼片段和文件信息
/*
Functions.cpp?:?Defines?the?exported?functions?for?the?Serv-U?Integration?Library.
-----------------------------------------------------------------------------
Copyright???Rhino?Software?Inc.
Serv-U??is?a?registered?trademark?of?Rhino?Software?Inc.
http://www.RhinoSoft.com/
-----------------------------------------------------------------------------
The?intent?of?this?source?file?is?to?provide?a?template?for?integration?into
Serv-U.??This?source?code?assumes?that?you?are?already?familiar?with?programming
and?creating?a?DLL?for?use?by?a?Windows?program?or?a?Shared?Library?(.so)?for?Linux.
Windows:
--------
Most?of?the?available?functions?are?optional.??If?you?do?not?want?to?support
a?particular?function?don‘t?export?it?in?your?.DEF?file
(“Serv-U?Integration?Sample?DLL.def“?for?this?sample?DLL).??Just?comment?out
the?function?name?in?your?.DEF?file.??While?all?available?functions?are
included?in?this?DLL?not?all?of?them?provide?useful?functionality.??These
“placeholder“?functions?are?identified?by?a?comment?in?the?body?of?the
function?identifying?it?as?intentionally?left?empty.
For?a?quick?list?of?the?supported?functions?review?“Serv-U?Integration?Sample?DLL.def“.
This?API?is?implemented?using?3?groups?Serv-U?User?Access?(SUUA)?Serv-U
Connection?(SUCN)?and?Serv-U?Operation?Hooks?(SUOH).??Functions?in?each?of
the?groups?are?prefixed?with?these?letters?to?help?organize?the?functionality.
Linux:
------
Most?of?the?available?functions?are?optional.??If?you?do?not?want?to?support
a?particular?function?you?can?remove?or?comment?out?the?function?in?this?source.
If?a?specific?function?does?not?exist?it?will?not?get?loaded.
In?Linux?Serv-U?uses?the?char?pointer?type?for?all?strings.
General:
--------
Serv-U‘s?API?uses?wide?characters?for?almost?all?strings?except?for?attribute
names?and?types?where?single-byte?strings?are?used?instead.?Wide?strings?types
are?SUIN_PCTSTR?and?SUIN_PTSTR.??Single?byte?string?typess?are?SUIN_PCSTR?and
SUIN_PSTR.
Whenever?strings?are?to?be?returned?by?your?library?Serv-U?provides?a?TCHAR
(wide?text?character)?buffer?and?a?buffer?size?in?TCHARs?(wide?characters).
When?copying?to?the?provided?buffer?be?sure?not?to?overflow?the?boundary.
Serv-U?provides?a?large?enough?buffer?for?all?attribute?values?however?good
programming?practice?dictates?that?safety?checks?should?be?put?in?place.
-----------------------------------------------------------------------------
NOTE?1:?Each?of?these?functions?are?executed?by?Serv-U‘s?main?thread;?any
lengthy?operations?performed?by?your?library?will?delay?Serv-U‘s?message?processing
which?can?cause?Serv-U?to?become?unresponsive?to?clients?until?your?library?function
finishes?execution.
NOTE?2:?This?API?uses?BOOL?for?boolean?values?to?provide?better?compatibility
for?languages?other?than?C/C++.??Serv-U?assumes?any?non-zero?BOOL?value?is
TRUE?while?only?0?is?FALSE.
NOTE?3:?This?file?uses?tab?stops?set?to?4?characte
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????96??2015-07-20?10:52??說明.txt
-----------?---------??----------?-----??----
?????????????40390611????????????????????1789
評論
共有 條評論