当前位置: 首页 > wzjs >正文

织梦做公司网站要钱吗html5简易网站建设

织梦做公司网站要钱吗,html5简易网站建设,凡客生活官网,上海网站建设 找思创网络LIB-ZC, 一个跨平台(Linux)平台通用C/C扩展库, stream 流操作 lib-zc 封装了流操作命名空间 zcc基础类 stream(基类), iostream(io流封装) class stream 介绍 连接相关 // 都是虚函数, 为 iostream 等做准备virtual inline bool connect(const char *destination) { return …

LIB-ZC, 一个跨平台(Linux)平台通用C/C++扩展库, stream 流操作

  • lib-zc 封装了流操作
  • 命名空间 zcc
  • 基础类 stream(基类), iostream(io流封装)

class stream 介绍

连接相关

	// 都是虚函数, 为 iostream 等做准备virtual inline bool connect(const char *destination) { return false; }inline bool connect(const std::string &destination);// openssl, 连接virtual int tls_connect(void *ctx) { return -1; }// openssl, 接受连接virtual int tls_accept(void *ctx) { return -1; }// closevirtual inline int close(bool close_fd_or_release_ssl = true) { return true; }// 是否已经打开/连接virtual inline bool is_opened() { return false; }// 是否已经关闭virtual inline bool is_closed() { return true; }

超时控制

	// 超时inline int get_timeout() { return engine_->wait_timeout; }// 设置超时virtual stream &set_timeout(int wait_timeout);// 带超时是否可读virtual int timed_read_wait(int wait_timeout);

状态检查

    // 是否错误inline bool is_error() { return (engine_->error ? true : false); }// 是否可读结束inline bool is_eof() { return (engine_->eof ? true : false); }// 设置错误inline stream &set_error(bool tf = true);// 设置可读结束inline stream &set_eof(bool tf = true);// 是否异常inline bool is_exception();

数据读取

    // 带超时是否可读virtual int timed_read_wait(int wait_timeout);// 是否有真实可读数据virtual inline int trueDataReadabel();// 读 1 个字节inline int getc();// 退回一个字节stream &ungetc();// 读cache里数据的长度inline int get_read_cache_len();// 读cache里数据的地址inline char *get_read_cache();// 读最多max_len的字节int read(void *mem, int max_len);int read(std::string &str, int max_len);// 严格读取strict_len个字节inline int readn(int strict_len);int readn(void *mem, int strict_len);int readn(std::string &str, int strict_len);// 读取到分隔符delimiter为止, 最多 max_len 个字节int read_delimiter(void *mem, int delimiter, int max_len);int read_delimiter(std::string &str, int delimiter, int max_len);// 读行inline int gets(void *mem, int max_len);inline int gets(std::string &str, int max_len);

数据写入

    // 带超时是否可写virtual int timed_write_wait(int wait_timeout);// 写cache里数据的长度inline int get_write_cache_len() { return (engine_->write_buf_len); }// 写cache里数据的地址inline char *get_write_cache(){engine_->write_buf[engine_->write_buf_len] = 0;return (char *)(engine_->write_buf);}// 写一个字节inline int putc(int c){return ((engine_->write_buf_len < wbuf_size) ? (engine_->write_buf[engine_->write_buf_len++] = (int)(c), (int)(c)) : (putc_do(c)));}// 退回一个字节stream &ungetc();// 刷写缓存int flush();// 写int write(const void *buf, int len);inline stream &puts(const char *s, int64_t len = -1);inline stream &puts(const std::string &str);inline stream &append(const char *s, int slen = -1);inline stream &append(const std::string &str);// 类似fprintf, 最多 1024 字节int printf_1024(const char *format, ...);

class iostream

实现了 io/socket 的流封装

连接

    // open socketiostream &open_socket(int fd);// open ssliostream &open_ssl(SSL *ssl);// 直接连接地址, 如 "127.0.0.1:6379,localhost:6388", "/var/run/some-domain-socket"bool connect(const char *destination);inline bool connect(const std::string &destination){return connect(destination.c_str());}


文章转载自:

http://6lVHTM8Q.tngdn.cn
http://Ftc03hu6.tngdn.cn
http://yJ1HSdry.tngdn.cn
http://RcJNIQ5Y.tngdn.cn
http://uolj9xal.tngdn.cn
http://YYoQWNrh.tngdn.cn
http://eesw05gd.tngdn.cn
http://4LB4YS9g.tngdn.cn
http://HdVLirYd.tngdn.cn
http://vr80PmQM.tngdn.cn
http://8bYoufAM.tngdn.cn
http://oMvzisee.tngdn.cn
http://Nt1kyuYP.tngdn.cn
http://rGHXPH6P.tngdn.cn
http://oL9US354.tngdn.cn
http://9UpuegmG.tngdn.cn
http://a2CYDyDx.tngdn.cn
http://8Rle9kqI.tngdn.cn
http://EGVwugGL.tngdn.cn
http://Af7CL6D0.tngdn.cn
http://mjp1yyYc.tngdn.cn
http://v6qtCiyI.tngdn.cn
http://SXpWMQxM.tngdn.cn
http://sJZTpzJD.tngdn.cn
http://eQymtzde.tngdn.cn
http://pwHghmQd.tngdn.cn
http://tnRcHME3.tngdn.cn
http://IrnbaPp1.tngdn.cn
http://gCxDv6Ad.tngdn.cn
http://P3gv1hId.tngdn.cn
http://www.dtcms.com/wzjs/669144.html

相关文章:

  • 网站建设有前途网站建设分为哪些内容
  • 上海网站制作哪家好网站建设和谷歌优化
  • 网站上传视频教程高端模板网站建设价格
  • 免费注册网站大全行业关键词
  • 公司网站建设哪个好免费手机网站制作
  • 网站建设案例wordpress毕业设计
  • 鹰潭做网站的长沙建站费用
  • 广东网站建设报价珠海网站建设尚古道策略
  • 建设文化产业网站的方案wordpress路由插件
  • 网站建设平台用乐云践新WordPress rss连接
  • 广州网站设计成功柚米科技怎么看网站到期时间
  • 目前做网站流行的语言重庆网站建站一站式服务
  • 郑州网站网络推广公司广州比较有名的网站建设公司
  • 网站开发模板专家数据库wordpress什么主题好
  • 跨境电商 网站开发域名领域
  • 五屏网站建设品牌好wordpress修改登录框字体
  • 网站界面设计起着决定性作用精品成品网站源码
  • 广州网站建设价格山东省城乡与住房建设厅网站
  • php网站开发的第三章wordpress花生壳lamp
  • 如何网站客户案例wordpress 汉化 不变
  • 公众号网站怎么做的网站seo排名优化方法
  • 上海网站建设高端网站里的动画效果图
  • 导视设计网站推荐wordpress改字体
  • 免费建站网站网页免费分站网站
  • 新手学做网站要学什么知识图文教程百度广告投放代理商
  • 网站建设中建站广告html单页面wordpress主题目录在哪里
  • 如何选择网站建设流程可以做语文阅读题的网站
  • 获取网站目录下所有文件银川做网站推广
  • 高端网站建设公司新鸿儒免费咨询劳动律师
  • 哪个网站做公司业务广告效果好分销系统 wordpress