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

网站备案在哪里找如何推广外贸网站

网站备案在哪里找,如何推广外贸网站,杭州网站seo优化,wordpress果酱主题原创文章是freas_1990#xff0c;转载请注明出处#xff1a;http://blog.csdn.net/freas_1990/article/details/23795587 在Linux 2.6一旦#xff08;不包含2.6#xff0c;对于更详细的调查是不是版本号#xff09;#xff0c;控制块的概念#xff0c;各种协议的状态管理… 原创文章是freas_1990转载请注明出处http://blog.csdn.net/freas_1990/article/details/23795587 在Linux 2.6一旦不包含2.6对于更详细的调查是不是版本号控制块的概念各种协议的状态管理还出于比較混乱的状态。 Linux 2.6以后。传输控制块机制使代码看起来比較规整了。 创建传输控制块 /** Create an inet socket.*/static int inet_create(struct socket *sock, int protocol) {struct sock *sk;struct list_head *p;struct inet_protosw *answer;struct inet_opt *inet;int err -ENOBUFS;sock-state SS_UNCONNECTED;sk sk_alloc(PF_INET, GFP_KERNEL, inet_sk_size(protocol),inet_sk_slab(protocol));if (!sk)goto out;/* Look for the requested type/protocol pair. */answer NULL;rcu_read_lock();list_for_each_rcu(p, inetsw[sock-type]) {answer list_entry(p, struct inet_protosw, list);/* Check the non-wild match. */if (protocol answer-protocol) {if (protocol ! IPPROTO_IP)break;} else {/* Check for the two wild cases. */if (IPPROTO_IP protocol) {protocol answer-protocol;break;}if (IPPROTO_IP answer-protocol)break;}answer NULL;}err -ESOCKTNOSUPPORT;if (!answer)goto out_sk_free;err -EPERM;if (answer-capability 0 !capable(answer-capability))goto out_sk_free;err -EPROTONOSUPPORT;if (!protocol)goto out_sk_free;err 0;sock-ops answer-ops;sk-sk_prot answer-prot;sk-sk_no_check answer-no_check;if (INET_PROTOSW_REUSE answer-flags)sk-sk_reuse 1;rcu_read_unlock();inet inet_sk(sk);if (SOCK_RAW sock-type) {inet-num protocol;if (IPPROTO_RAW protocol)inet-hdrincl 1;}if (ipv4_config.no_pmtu_disc)inet-pmtudisc IP_PMTUDISC_DONT;elseinet-pmtudisc IP_PMTUDISC_WANT;inet-id 0;sock_init_data(sock, sk);sk_set_owner(sk, THIS_MODULE);sk-sk_destruct inet_sock_destruct;sk-sk_zapped 0;sk-sk_family PF_INET;sk-sk_protocol protocol;sk-sk_backlog_rcv sk-sk_prot-backlog_rcv;inet-uc_ttl -1;inet-mc_loop 1;inet-mc_ttl 1;inet-mc_index 0;inet-mc_list NULL;#ifdef INET_REFCNT_DEBUGatomic_inc(inet_sock_nr); #endifif (inet-num) {/* It assumes that any protocol which allows* the user to assign a number at socket* creation time automatically* shares.*/inet-sport htons(inet-num);/* Add to protocol hash chains. */sk-sk_prot-hash(sk);}if (sk-sk_prot-init) {err sk-sk_prot-init(sk);if (err)inet_sock_release(sk);} out:return err; out_sk_free:rcu_read_unlock();sk_free(sk);goto out; } 这里的sk_alloc是重点 sk sk_alloc(PF_INET, GFP_KERNEL, inet_sk_size(protocol),inet_sk_slab(protocol)); inet_sk_size定义例如以下 static __inline__ int inet_sk_size(int protocol) {int rc sizeof(struct tcp_sock);if (protocol IPPROTO_UDP)rc sizeof(struct udp_sock);else if (protocol IPPROTO_RAW)rc sizeof(struct raw_sock);return rc; } 它会依据详细的传输层协议定义返回对应的传输控制块的大小。 在socket里sock指针仅仅是一个“泛型”它可能指向struct sockstruct tcp_sockstruct udp_sock根据该协议的细节。 版权声明本文博客原创文章博客未经同意不得转载。
http://www.yutouwan.com/news/424973/

相关文章:

  • 网站推广怎么弄佛山做礼物的网站
  • 网站备案需要准备什么中文wordpress搭建
  • 南阳网站建设哪家专业wordpress hero theme
  • 半江红网站建设软件下载大全网站
  • 做互联网需要网站吗企业网站建设多长时间
  • 免费建网站网址装饰工程经营范围有哪些
  • 3分钟搞定网站seo优化外链建设新站seo竞价
  • 莆田手表网站北仑网站网页建设
  • 做网站530元怎么浏览英文网站
  • 营销型网站建设遨龙上海个人建站
  • 杭州高端网站制作怎么做赛事直播网站
  • 手机网站转换小程序广东省建筑网站
  • 网站策划机构做网站最好的公司
  • excel网站链接怎么做电子商务网站建设策划报告
  • 建筑网站知名度怎么开网店具体流程
  • 宝安最好的网站建设wordpress获取当前文章所属分类
  • php 上传移动到网站根目录wordpress 4.8 rest api
  • 制作一个网站的费用西安网页设计培训费用
  • 做网站工资多少北京开公司的基本流程及费用
  • 网站建设拍金手指排名贰贰seo兼职在家怎么做
  • 打开网上免费网站吗摄影网页制作
  • 珠海仿站定制模板建站网站建设单一来源谈判文件
  • 做个简单的企业小网站如何建设网站教程
  • 公司网站生成二维码开发公司移交物业必备资料
  • icp备案网站信息查询大庆seo公司
  • 做外贸大一点的网站网站建设几点关门
  • 跨国网站浏览器企业免费网站建设模板
  • 模板建站多少钱织梦网站模板响应式
  • 企业为什么要建设电子商务网站和业务多一样的平台
  • 哪个网站可以做微信推送实施网站推广的最终目的