• ftp服务器源代码

    FTP 服务器端,可用作小型FTP服务器.C++ 编写,在VC++下编译,工程文档齐全,直接打开即可编译。 class CFtpd : public CSocket { // Attributes public: // Operations public: CFtpd(); virtual ~CFtpd(); // Overrides public: char userfile[256]; char ipfile[256]; int m_buf_length; CCriticalSection absCrit; bool m_specify_data_port; UINT m_port_from; UINT m_port_to; void RemoveClient(CFtpdPi *pBind); void AddClient(CFtpdPi* pBind); UINT m_port; DWORD* lpDW2; DWORD* lpDW; LPHOSTENT lpHostEnt; char HostName[100]; unsigned long IP; char sTmp[32]; int i; CString Citem; int result; // SECFileSystem fs; char buf[256]; char tmp[32]; BOOL allow; POSITION pos; CString CSIP; int sl; // int m_kbs; bool b_speed_limit_in; bool b_speed_limit_out; int default_speed_in; int default_speed_out; char m_root_dir[256]; bool b_auto_choose_ip; bool b_switch_pasv_ip; bool b_ipchk_pasv; bool b_ipchk; CString m_servername; DWORD dwNumIf; DWORD GetLocalNumericIP(int Index); CStringList ipList; CFtpdPi* ftpdbindsock; CList<CFtpdPi*,CFtpdPi*> ClientList; // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CFtpd) public: virtual void OnAccept(int nErrorCode); virtual void OnClose(int nErrorCode); //}}AFX_VIRTUAL // Generated message map functions //{{AFX_MSG(CFtpd) // NOTE - the ClassWizard will add and remove member functions here. //}}AFX_MSG // Implementation protected: };

    0
    800
    114KB
    2019-09-03
    44
  • MPEG4压缩算法源代码 .zip

    mpeg4编码库源代码,C++完整源代码,有需要饿同学尽管拿去。 // This is the header file describing // the entrance function of the encoder core // or the encore ... #ifdef __cplusplus extern "C" { #endif typedef struct _ENC_PARAM_ { int x_dim; // the x dimension of the frames to be encoded int y_dim; // the y dimension of the frames to be encoded float framerate;// the frame rate of the sequence to be encoded long bitrate; // the bitrate of the target encoded stream long rc_period; // the intended rate control averaging period long rc_reaction_period; // the reation period for rate control long rc_reaction_ratio; // the ratio for down/up rate control long max_key_interval; // the maximum interval between key frames int max_quantizer; // the upper limit of the quantizer int min_quantizer; // the lower limit of the quantizer int search_range; // the forward search range for motion estimation } ENC_PARAM; typedef struct _ENC_FRAME_ { void *image; // the image frame to be encoded void *bitstream;// the buffer for encoded bitstream long length; // the length of the encoded bitstream } ENC_FRAME; typedef struct _ENC_RESULT_ { int isKeyFrame; // the current frame is encoded as a key frame } ENC_RESULT; // the prototype of the encore() - main encode engine entrance int encore( unsigned long handle, // handle - the handle of the calling entity, must be unique unsigned long enc_opt, // enc_opt - the option for encoding, see below void *param1, // param1 - the parameter 1 (its actually meaning depends on enc_opt void *param2); // param2 - the parameter 2 (its actually meaning depends on enc_opt // encore options (the enc_opt parameter of encore()) #define ENC_OPT_WRITE 1024 // write the reconstruct image to files (for debuging) #define ENC_OPT_INIT 32768 // initialize the encoder for an handle #define ENC_OPT_RELEASE 65536 // release all the resource associated with the handle // return code of encore() #define ENC_OK 0 #define ENC_MEMORY 1 #define ENC_BAD_FORMAT 2 #ifdef __cplusplus } #endif

    0
    256
    96KB
    2019-09-03
    16
  • VC++支持中文的正则表达式函数库

     一个完美支持中文且语法完善的自制正则表达式库,这可能是第一个大陆程序员写的开源正则表达式库,作者放弃除著作署名权之外的任何权益,你可以在保留此申明的前提下,自由的,无限制的分发、修改和使用本函数.

    5
    230
    15KB
    2012-04-19
    44
  • VC++精品源码

    jpeg资源库 控件美化 多个VC++源代码打包 :VC 源代码 -------------------------------------------------------------------------------- CatListBox_src.zip CatListBox_demo.zip   这个程序模仿Outlook建立分类列表框。 CClockST_src.zip CClockST_demo.zip  一个简单的数字时钟程序,其中的date类派生于MFC CStatic 基类。 CIVStringSet_Demo.zip CIVStringSet_Source.zip   基于MFC和STL平台的字符串类,可以实现在快速字符串搜索。 enum_display_modes_demo.zip enum_display_modes_src.zip   列出所有的显示模式并列表出来,通过单击列表来改变显示分辨率。 iconbutton_demo.zip iconbutton_src.zip   创建一个按钮,并在上面显示图标。 jpeglib_demo.zip jpeglib_src.zip   利用Delphi的代码在VC中显示JPG图片,不使用动态连接库。 Mail_Report.zip   一个邮件报告程序。 SrcFirstProg.zip   解释了最基本的MFC程序流程。 tabcontrol_demo.zip tabcontrol_src.zip   自定义的标签控件对话框。 Undo_demo.zip undo_src.zip    在VC中实现Undo和Redo功能。

    0
    35
    999KB
    2012-02-27
    2
  • 创作能手

    授予每个自然周发布1篇到3篇原创IT博文的用户
关注 私信
上传资源赚积分or赚钱