亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pstreams.h

?? PTypes (C++ Portable Types Library) is a simple alternative to the STL that includes multithreading
?? H
?? 第 1 頁 / 共 2 頁
字號:
    outstm* get_stm()  { return stm; }    void set_stm(outstm* stm);};//// inmemory - memory stream//class ptpublic inmemory: public instm {protected:    string mem;    virtual void bufalloc();    virtual void buffree();    virtual void bufvalidate();    virtual void doopen();    virtual void doclose();    virtual int dorawread(char* buf, int count);public:    inmemory(const string& imem);    virtual ~inmemory();    virtual int classid();    virtual string get_streamname();};//// outmemory - memory stream//class ptpublic outmemory: public outstm {protected:    string mem;    int limit;    int increment;    virtual void doopen();    virtual void doclose();    virtual int dorawwrite(const char* buf, int count);public:    outmemory(int limit = -1, int increment = 1024);    virtual ~outmemory();    virtual int classid();    virtual string get_streamname();    const char* get_data()   { return pconst(mem); }    int tell()               { return abspos; }    string get_strdata();};// -------------------------------------------------------------------- //// ---  file input/output --------------------------------------------- //// -------------------------------------------------------------------- ////// infile - file input//class outfile;class ptpublic infile: public instm{protected:    string filename;    int    syshandle;   // if not -1, assigned to handle in open() instead of opening a file by a name    int    peerhandle;  // pipe peer handle, needed for closing the peer after fork() on unix    virtual void doopen();    virtual void doclose();public:    infile();    infile(const char* ifn);    infile(const string& ifn);    virtual ~infile();    virtual int classid();    void pipe(outfile&);    virtual string get_streamname();    int get_syshandle()                     { return syshandle; }    void set_syshandle(int ihandle)         { close(); syshandle = ihandle; }    int get_peerhandle()                    { return peerhandle; }    string get_filename()                   { return filename; }    void set_filename(const string& ifn)    { close(); filename = ifn; }    void set_filename(const char* ifn)      { close(); filename = ifn; }};//// outfile - file output//class ptpublic outfile: public outstm{protected:    friend class infile; // infile::pipe() needs access to peerhandle    string filename;    int    syshandle;   // if not -1, assigned to handle in open() instead of opening a file by a name    int    peerhandle;  // pipe peer handle, needed for closing the peer after fork() on unix    int    umode;       // unix file mode (unix only), default = 644    bool   append;      // append (create new if needed), default = false    virtual void doopen();    virtual void doclose();public:    outfile();    outfile(const char* ifn, bool iappend = false);    outfile(const string& ifn, bool iappend = false);    virtual ~outfile();    virtual int classid();    virtual void flush();    virtual string get_streamname();    int get_syshandle()                     { return syshandle; }    void set_syshandle(int ihandle)         { close(); syshandle = ihandle; }    int get_peerhandle()                    { return peerhandle; }    string get_filename()                   { return filename; }    void set_filename(const string& ifn)    { close(); filename = ifn; }    void set_filename(const char* ifn)      { close(); filename = ifn; }    bool get_append()                       { return append; }    void set_append(bool iappend)           { close(); append = iappend; }    int  get_umode()                        { return umode; }    void set_umode(int iumode)              { close(); umode = iumode; }};//// intee - UNIX tee-style utility class//class ptpublic intee: public infilter {protected:    outfile file;    virtual void doopen();    virtual void doclose();    virtual void dofilter();public:    intee(instm* istm, const char* ifn, bool iappend = false);    intee(instm* istm, const string& ifn, bool iappend = false);    virtual ~intee();    outfile* get_file()   { return &file; }    virtual string get_streamname();};// -------------------------------------------------------------------- //// ---  named pipes --------------------------------------------------- //// -------------------------------------------------------------------- //// on Unix this directory can be overridden by providing the// full path, e.g. '/var/run/mypipe'. the path is ignored on // Windows and is always replaced with '\\<server>\pipe\'#ifndef WIN32#  define DEF_NAMED_PIPES_DIR "/tmp/"#endif#ifdef WIN32const int DEF_PIPE_TIMEOUT = 20000;         // in milliseconds, for reading and writingconst int DEF_PIPE_OPEN_TIMEOUT = 1000;     // for connecting to the remote pipe:const int DEF_PIPE_OPEN_RETRY = 5;          //    will double the timeout value for each retry,                                            //    i.e. 1 second, then 2, then 4 etc.const int DEF_PIPE_SYSTEM_BUF_SIZE = 4096;#endifclass ptpublic namedpipe: public fdxstm{    friend class npserver;protected:    string pipename;    int    svhandle;#ifdef WIN32    // we use overlapped IO in order to have timed waiting in serve()    // and also to implement timeout error on the client side    OVERLAPPED ovr;    virtual int dorawread(char* buf, int count);    virtual int dorawwrite(const char* buf, int count);    static string namedpipe::realpipename(const string& pipename, const string& svrname = nullstring);    void initovr();#else    static string namedpipe::realpipename(const string& pipename);    static bool setupsockaddr(const string& pipename, void* sa);    void initovr()  {}#endif    virtual void doopen();    virtual void doclose();    virtual int  doseek(int, ioseekmode);public:    namedpipe();    namedpipe(const string& ipipename);#ifdef WIN32    namedpipe(const string& ipipename, const string& servername);#endif    virtual ~namedpipe();    virtual void flush();    virtual string get_streamname();    string get_pipename()   { return pipename; }    void set_pipename(const string&);    void set_pipename(const char*);};class ptpublic npserver: public unknown{    string pipename;    int    handle;    bool   active;    void error(int code, const char* defmsg);    void open();    void close();#ifdef WIN32    void openinst();    void closeinst();#endifpublic:    npserver(const string& ipipename);    ~npserver();    bool serve(namedpipe& client, int timeout = -1);};// -------------------------------------------------------------------- //// ---  utility streams ----------------------------------------------- //// -------------------------------------------------------------------- ////// MD5 -- message digest algorithm// Derived from L. Peter Deutsch's work, please see src/pmd5.cxx//const int md5_digsize = 16;typedef uchar md5_digest[md5_digsize];// from md5.htypedef unsigned char md5_byte_t; /* 8-bit byte */typedef unsigned int md5_word_t; /* 32-bit word */typedef struct md5_state_s {    md5_word_t count[2];	/* message length in bits, lsw first */    md5_word_t abcd[4];		/* digest buffer */    md5_byte_t buf[64];		/* accumulate block */} md5_state_t;class ptpublic outmd5: public outfilter {protected:    md5_state_s ctx;    md5_digest digest;    virtual void doopen();    virtual void doclose();    virtual int dorawwrite(const char* buf, int count);public:    outmd5(outstm* istm = nil);    virtual ~outmd5();        virtual string get_streamname();    const unsigned char* get_bindigest()  { close(); return digest; }    string get_digest();};//// null i/o stream//class ptpublic outnull: public outstm{protected:    virtual int  dorawwrite(const char*, int);    virtual void doopen();    virtual void doclose();public:    outnull();    virtual ~outnull();    virtual string get_streamname();};// -------------------------------------------------------------------- //// ---  unit ---------------------------------------------------------- //// -------------------------------------------------------------------- //#ifdef _MSC_VER// disable "type name first seen using 'struct' now seen using 'class'" warning#  pragma warning (disable: 4099)// disable "class '...' needs to have dll-interface to be used by clients of class // '...'" warning, since the compiler may sometimes give this warning incorrectly.#  pragma warning (disable: 4251)#endifclass ptpublic unit: public component{protected:    friend class unit_thread;    unit*         pipe_next;    // next unit in the pipe chain, assigned by connect()    unit_thread*  main_thread;  // async execution thread, started by run() if necessary    int           running;      // running status, to protect from recursive calls to run() and waitfor()    void do_main();public:    compref<instm> uin;    compref<outstm> uout;    unit();    virtual ~unit();    virtual int classid();    // things that may be overridden in descendant classes    virtual void main();        // main code, called from run()    virtual void cleanup();     // main code cleanup, called from run()    // service methods    void connect(unit* next);    void run(bool async = false);    void waitfor();};typedef unit* punit;typedef unit CUnit;         // send me a $10 check if you use this alias (not obligatory though,                            // because the library is free, after all)//// standard input, output and error devices//ptpublic extern infile  pin;ptpublic extern outfile pout;ptpublic extern outfile perr;ptpublic extern outnull pnull;#ifdef _MSC_VER#pragma pack(pop)#endifPTYPES_END#endif // __PSTREAMS_H__

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美中文字幕精品| 亚洲国产一区在线观看| 3d动漫精品啪啪| 91官网在线免费观看| 成人永久免费视频| 国产呦精品一区二区三区网站| 天天综合日日夜夜精品| 亚洲国产精品久久久久婷婷884| 亚洲乱码日产精品bd| 一区二区三区加勒比av| 悠悠色在线精品| 亚洲一区中文日韩| 亚洲成a人v欧美综合天堂下载| 亚洲激情图片qvod| 亚洲6080在线| 精品一区二区三区久久| 国产一区啦啦啦在线观看| 国产精品一区二区久激情瑜伽| 国产精品一区二区你懂的| 国产精品综合视频| 粉嫩蜜臀av国产精品网站| www.欧美日韩| 欧美性受xxxx黑人xyx性爽| 欧美午夜精品一区二区蜜桃| 欧美片在线播放| 久久久亚洲高清| 国产精品毛片无遮挡高清| 亚洲欧美日韩一区二区| 亚洲精品国产一区二区精华液 | 蜜臀av亚洲一区中文字幕| 免费观看在线综合色| 国产一区三区三区| 欧美无人高清视频在线观看| 51精品秘密在线观看| 久久精品视频在线免费观看| 亚洲视频小说图片| 爽好久久久欧美精品| 国产成人精品影院| 欧美色欧美亚洲另类二区| 精品国产百合女同互慰| 亚洲免费观看高清完整版在线 | 91福利资源站| 久久影院电视剧免费观看| 亚洲天天做日日做天天谢日日欢 | 久久精品视频免费| 一级特黄大欧美久久久| 国产真实乱偷精品视频免| 在线亚洲一区二区| 欧美美女一区二区在线观看| 国产欧美一区视频| 日本v片在线高清不卡在线观看| 久久精品国产一区二区三 | 天天影视网天天综合色在线播放 | 亚洲伦理在线免费看| 国产一区二区三区黄视频| 欧美日韩一区国产| 国产精品传媒视频| 国产伦理精品不卡| 日韩视频免费观看高清完整版 | 亚洲制服丝袜在线| 国产黄色精品网站| 91精品国产高清一区二区三区蜜臀 | 国产视频一区二区在线观看| 性欧美大战久久久久久久久| 不卡视频在线观看| 国产亚洲欧美日韩在线一区| 人禽交欧美网站| 欧美日韩一区成人| 一区二区欧美国产| 色欧美日韩亚洲| 亚洲欧美另类图片小说| 成人高清视频在线观看| 久久这里只有精品首页| 久久精品国产秦先生| 日韩一区二区三区四区五区六区| 亚洲图片欧美综合| 欧美日韩一级二级三级| 亚洲已满18点击进入久久| 91香蕉视频在线| 一区二区在线观看视频 | 欧美综合色免费| 亚洲精品自拍动漫在线| 99精品欧美一区二区三区小说| 国产亚洲欧美在线| 成人午夜视频网站| 国产精品久久久久永久免费观看| 国产伦精品一区二区三区免费迷| 欧美www视频| 国产综合成人久久大片91| 欧美va亚洲va在线观看蝴蝶网| 精品一区二区在线视频| 国产欧美日韩精品一区| 99国产欧美另类久久久精品| 亚洲欧美激情小说另类| 在线视频亚洲一区| 丝袜亚洲另类欧美| 欧美精品一区二区三区视频| 国产精品99久久久久久久女警| 欧美国产日本韩| 色婷婷一区二区| 日韩国产高清影视| 久久综合国产精品| 色网站国产精品| 日本女人一区二区三区| 国产日韩v精品一区二区| 91在线免费播放| 日本一不卡视频| 亚洲国产精品成人久久综合一区| 日本久久一区二区三区| 老鸭窝一区二区久久精品| 国产日本亚洲高清| 欧美三级视频在线播放| 韩日av一区二区| 一区二区三区四区五区视频在线观看| 欧美精品1区2区3区| 国产乱妇无码大片在线观看| 亚洲桃色在线一区| 欧美成va人片在线观看| 色一情一乱一乱一91av| 蜜臀久久久99精品久久久久久| 中文字幕乱码一区二区免费| 在线播放91灌醉迷j高跟美女| 国产精品自拍av| 五月婷婷综合激情| 亚洲欧洲www| 久久午夜色播影院免费高清| 欧美日韩亚洲高清一区二区| 国产精品一区二区视频| 图片区小说区国产精品视频| 中文字幕+乱码+中文字幕一区| 911精品国产一区二区在线| 99久久久精品| 国产一区二区按摩在线观看| 亚洲成人黄色影院| 亚洲免费观看高清完整版在线观看熊 | 久久久99精品免费观看| 欧美视频一区二区在线观看| 国产suv一区二区三区88区| 麻豆一区二区三| 天涯成人国产亚洲精品一区av| 亚洲同性gay激情无套| 国产欧美日韩在线| 精品对白一区国产伦| 91精品国产一区二区人妖| 欧美在线免费视屏| 色综合天天狠狠| 99国产精品视频免费观看| 国产成a人无v码亚洲福利| 久久 天天综合| 久久精品国产久精国产爱| 日韩成人免费看| 日本不卡免费在线视频| 秋霞av亚洲一区二区三| 蜜乳av一区二区| 捆绑紧缚一区二区三区视频| 日本成人中文字幕在线视频| 婷婷综合在线观看| 婷婷综合五月天| 老司机精品视频在线| 久久不见久久见免费视频1| 另类人妖一区二区av| 国内外成人在线视频| 狠狠v欧美v日韩v亚洲ⅴ| 国产精品综合二区| 成人爱爱电影网址| 99re成人精品视频| 欧洲av一区二区嗯嗯嗯啊| 在线播放日韩导航| 久久亚洲综合色一区二区三区| 精品成人一区二区| 国产精品少妇自拍| 亚洲视频一二三| 亚洲成av人片在www色猫咪| 日本欧美在线看| 国产一区二区视频在线| 成人免费视频一区| 91福利精品第一导航| 欧美一区欧美二区| 久久久久久久av麻豆果冻| 国产精品伦理在线| 亚洲一区在线视频观看| 精品一区在线看| 色婷婷综合视频在线观看| 欧美久久久一区| 国产日韩欧美综合一区| 亚洲精品日日夜夜| 蜜桃av一区二区| 色综合天天综合网天天看片| 51久久夜色精品国产麻豆| 国产精品青草久久| 青青草97国产精品免费观看无弹窗版 | 三级成人在线视频| 国产美女精品一区二区三区| 91在线观看污| 日韩免费一区二区三区在线播放| 中文av字幕一区| 美腿丝袜亚洲综合| 91国产丝袜在线播放| www一区二区| 亚洲国产aⅴ天堂久久|