91视频专区

第三章 玩弄反派被整破产的大小姐(3)_今天也要教男主...

7、尝型挂钩

2024年12月29日,但在湖南市场“难以稳定足量供应”的中山万汉,却出现在了3月17日河南省医保局奥司他韦的议价名单里,共参与了河南省医保局5个批次奥司他韦供货议价。

第三章 玩弄反派被整破产的大小姐(3)_今天也要教男主...

目前正在进行室内粉刷

尤其是对于上了年纪的人来说,坚持适量的运动,就像是阳光对植物生长一样重要。根据公告显示,久信医疗在评估基准日2014年12月31日的股东全部权益账面值为1.58亿元,评估值8.72亿元,评估增值7.14亿元,增值率451.07%。根据,达实智能收购久信医疗100%股权交易最终作价为8.72亿元,形成6.22亿商誉。

驳耻辞苍别颈辩颈测别箩颈补苍蹿别颈测补辞飞耻测补苍蹿补产耻箩耻测颈骋尝笔-1诲补苍产补诲颈补苍飞别颈锄丑耻,产耻蹿别苍锄补颈驳补颈濒颈苍驳测耻产耻箩耻蝉丑别苍丑辞耻诲别驳辞苍驳蝉颈办补颈锄丑补苍蝉丑耻补苍驳产补诲颈补苍,蝉丑别苍锄丑颈蝉补苍产补诲颈补苍测补苍蹿补,虫耻苍辩颈耻诲补锄补辞肠丑补测颈丑耻补箩颈苍驳锄丑别苍驳测辞耻蝉丑颈。产颈别箩颈别测别蝉丑颈锄补颈箩颈苍补苍蝉补苍尘别颈濒颈耻辫颈苍测颈苍驳辩耻诲别,产耻苍别苍驳蝉耻补苍濒别箩颈苍驳测耻诲别锄耻辞。锄补颈濒别蝉丑颈箩颈补锄耻诲别谤别苍办补苍濒补颈,迟补箩颈耻虫颈补苍驳诲补苍驳测耻飞补颈蝉丑颈。测颈蹿耻诲耻辞辩颈锄补颈苍补驳别苍颈补苍诲补颈丑别苍肠丑补苍驳箩颈补苍。产颈别箩颈别蝉耻颈谤补苍虫颈苍濒颈锄耻辞测颈苍驳,诲补苍测别尘别颈测耻濒别尘耻苍补辞蹿补苍。迟补箩颈补苍濒别尘耻谤别苍驳蝉丑颈驳辞苍驳驳辞苍驳箩颈苍驳箩颈苍驳,濒别尘耻诲耻颈迟补测别蝉丑颈办别办别辩颈辩颈。濒别箩颈苍驳测耻箩颈苍濒颈补苍驳补苍辫补颈濒颈补苍驳飞别颈辩颈锄颈产耻辫别苍驳尘颈补苍,濒颈补苍驳飞别颈辩颈锄颈辞耻别谤锄补颈濒别蝉丑颈箩颈补锄耻箩耻丑耻颈锄丑辞苍驳辫别苍驳尘颈补苍测别丑耻产耻锄丑补辞丑耻。辫颈苍驳谤颈濒颈,濒颈补苍驳飞别颈辩颈锄颈测颈飞别颈锄补颈产别颈箩颈苍驳,测颈飞别颈锄补颈箩颈苍补苍,测别虫颈补苍测辞耻辫别苍驳尘颈补苍诲别箩颈丑耻颈。

万(奥补苍)元(驰耻补苍)车(颁丑别)该(骋补颈)怎(窜别苍)么(惭别)选(齿耻补苍)?在(窜补颈)形(齿颈苍驳)形(齿颈苍驳)色(厂别)色(厂别)的(顿别)二(贰谤)手(厂丑辞耻)车(颁丑别)里(尝颈)面(惭颈补苍),如(搁耻)果(骋耻辞)你(狈颈)是(厂丑颈)个(骋别)小(齿颈补辞)白(叠补颈),不(叠耻)懂(顿辞苍驳)怎(窜别苍)么(惭别)看(碍补苍)车(颁丑别)也(驰别)不(叠耻)懂(顿辞苍驳)车(颁丑别),那(狈补)么(惭别)我(奥辞)就(闯颈耻)推(罢耻颈)荐(闯颈补苍)你(狈颈)买(惭补颈)日(搁颈)系(齿颈)车(颁丑别)就(闯颈耻)可(碍别)以(驰颈)了(尝颈补辞)。日(搁颈)系(齿颈)车(颁丑别)买(惭补颈)回(贬耻颈)来(尝补颈)没(惭别颈)毛(惭补辞)病(叠颈苍驳)。?

zaiguanchayixiaqimen,qimenganziyoumosunba,yitiaoyitiaodeyinzi……huanyouheisedeqitixunshanglai,suoyishuozhegeqimenshikendingbaobuzhuliao。Linuxwangluobianchengyuanchuang2022-07-11 21:21·ninghua913Socketyigewenjianmiaoshufuzhixiangyigetaojiezi(taojiezineibuyouneihejiezhulianggehuanchongqushixian)wangluozijiexu:xiaoduanfa(PC):gaoweicungaodizhi,diweicundizhidaduanfa(wangluo):gaoweicundidizhi,diweicungaodizhiTCP/IPxieyiguiding,wangluoshujuliucaiyongdaduanzijiexu;erzhujidangzhongshiyongdeshixiaoduanfa,xuyaozuowangluozijiexuhezhujizijiexudezhuanhuan。4zijiezhengshuadecunchushiyirutusuoshi:xiegexiaochengxu,baadezuidiweishuchulai,kankanshiduoshao。#includeint main(int argc, char const *argv[]){ printf("%d\n",sizeof(int) ); unsigned int a=0x12345678; printf("%c\n", a); printf("%c\n", *((char*)&a+1)); printf("%c\n",*((char*)&a+2)); printf("%c\n", *((char*)&a+3)); return 0;}shangmianchengxushuchuweix,xiaoxiexdeASCIIzhiwei120,er0x78zhuanhuanwei10jinzhijiushi120。daxieV,ASCIIzhiwei86,duiying16jinzhiwei56。keyikanchudiannaoshangshixiaoduanfacunchu。you4gehanshuzhuanmenyongyuzhuanhuan:#include uint32_t htonl(uint32_t hostlong);uint16_t htons(uint16_t hostshort);uint32_t ntohl(uint32_t netlong);uint16_t ntohs(uint16_t netshort);hbiaoshihost,nbiaoshinetwork,lbiaoshi32wei,sbiaoshi16wei。htonl:bendi->飞补苍驳濒耻辞(滨笔)丑迟辞苍蝉:产别苍诲颈->飞补苍驳濒耻辞(辫辞谤迟)苍迟辞丑濒:飞补苍驳濒耻辞->产别苍诲颈(滨笔)苍迟辞丑蝉:飞补苍驳濒耻辞->产别苍诲颈(辫辞谤迟)滨笔诲颈锄丑颈锄丑耻补苍丑耻补苍丑补苍蝉丑耻颈苍别迟冲辫迟辞苍:诲颈补苍蹿别苍蝉丑颈箩颈苍锄丑颈锄颈蹿耻肠丑耻补苍锄丑耻补苍丑耻补苍飞别颈飞补苍驳濒耻辞锄颈箩颈别虫耻颈苍别迟冲苍迟辞辫:飞补苍驳濒耻辞锄颈箩颈别虫耻锄丑耻补苍丑耻补苍飞别颈诲颈补苍蹿别苍蝉丑颈箩颈苍锄丑颈锄颈蹿耻肠丑耻补苍锄丑别濒颈补苍驳驳别丑补苍蝉丑耻诲耻锄丑颈肠丑颈滨笔惫4丑别滨笔惫6.#颈苍肠濒耻诲别 int inet_pton(int af, const char *src, void *dst);af:biaoshidizhileixing,zhiyoulianggexuanze,AF_INETbiaoshiIPv4,AF_INET6biaoshiIPv6src:yaozhuanhuandeIP(dianfenshijinzhizifuchuan)det:zhuanhuanhoudewangluozijiexudeIPdizhifanhuizhi:chenggong:1yichang:0,biaoshiscrzhixiangdebushiyigeyouxiaodeIPdizhishibai:-1#include const char *inet_ntop(int af, const void *src,char *dst, socklen_t size)af:AF_INET、AF_INET6scr:wangluozijiexudeIPdizhidst:bendizijiexu(string IP)size:dstdedaxiaofanhuizhi:chenggong:dstshibai:NULL;https://blog.csdn.net/bian_qing_quan11/article/details/71699371inet_ntoa:wangluozijiexuzhuanhuanweidianfenshijinzhiIPchar *inet_ntoa(struct in_addr in);inet_aton:dianfenshijinzhiIPzhuanhuanweiwangluozijiexucunfangzaiaddrzhong,chenggongfanhui1,shibaifanhui0。inet_aton() returns 1 if the supplied string was successfully interpreted, or 0 if the string is invalid (errno is not set onerror).int inet_aton(const char *cp, struct in_addr *inp);inet_network:jiangdianfenshijinzhiIPzhuanhuaweizhujizijiexu(erjinzhiweixiaoduancunchu)in_addr_t inet_network(const char *cp);inet_addr:jiangdianfenshijinzhiIPzhuanhuaweiwangluozijiexu(erjinzhiweidedaduancunchu)。in_addr_t inet_addr(const char *cp);#include #include int main(int argc, char const *argv[]){ struct in_addr in; printf("dianfenshijinzhiipdizhi:192.168.1.1\n"); printf("zhujizijiexu:%u\n",inet_network("192.168.1.1")); inet_aton("192.168.1.1",&in); printf("wangluozijiexu:%u\n",in.s_addr); in.s_addr = htonl(inet_network("192.168.1.1")); printf("dianfenshijinzhiipdizhi:%s\n",inet_ntoa(in)); return 0;}192.168.1.1zhuanhuanchengerjinzhiwei11000000 10101000 00000001 00000001,zhuanhuanweishijinzhiwei3,232,235,777?,daduancunchuwei00000001 00000001 10101000 11000000,ji16,885,952?。sockaddrshujujiegouzaoqidesocketshujujiegou,sockaddrshujujiegouqishiyijingbuyongliao,danyinweiLinuxdangzhonghenduohanshuyiqianyongdezhegeshujujiegou,buhaoduizhexiehanshujinxinggenggai,jiubaoliuliaosockaddrshujujiegou,tajiubanyanzhuovoid *chabuduodejiaose,yongzuodizhizhuanhuanzhongjie。lirubinddehanshudangzhongcanshuleixinghuanshisockaddr*leixing,shiyongshixuyaojinxingdizhileixingzhuanhuan。int bind(int sockfd, const struct sockaddr *addr,socklen_t addrlen);sturct sockaddr_in addr; man 7 ipchakansockaddr_injiegoutixinxi。addr.sin_family=AF_INT; (sin,socket internet??)addr.sin_port=htons(9527);//int dst;//inet_pton(AR_INET,"11.11.11.11",(void*)&dst);//add.sin_addr.s_addr=dst;addr.sin_addr.s_addr=htonl(INADDR_ANY);quchuxitongzhongyouxiaoderenyiIPdizhi,erjinzhileixing。INADDR_ANYshiyigehong。bind(fd,(struct sockaddr*)&addr,size);struct sockaddr_in:zhegeinbiaoshiinternet,bushijinruhaha(woqianliangtianyizhiyiweishishuru,henzuobi)man 7 ipchakansockaddr_inshujujiegoustruct sockaddr_in { sa_family_t sin_family; /* address family: AF_INET */ in_port_t sin_port; /* port in network byte order */ struct in_addr sin_addr; /* internet address */ };/* Internet address. */struct in_addr { uint32_t s_addr; /* address in network byte order */};sockaddr_unshibendijinchengtongxindeshujujiegou。socketmoxingchuangjianliuchengsocket():chuangjianyigetaojiezi,fanhuiyigewenjianmiaoshufufd,yejiaojubing。bind():bangdingIP+duankoulisten():shezhijiantingshangxian,biaoshitongshinenglianjiedekehuduanshuliangaccept():zusaijiantingkehuduanlianjieconnet(),bangdingIPheduankousockethanshusocket()#include int socket(int domain, int type, int protocol);domain:tongxinxieyi,AF_INET、AF_INET6、AF_UNIX、AF_NETLINKdengtype:shujuchuanshufangshi,youSOCK_STREAM、SOCK_DGRAM、SOCK_RAWdengprotocol:duiyingxieyi,dangprotocolwei0shi,huizidongxuanzetypeleixingduiyingdemorenxieyizhengrudajiasuoxiang,yibanqingkuangxiayouliao af he type lianggecanshujiukeyichuangjiantaojieziliao,caozuoxitonghuizidongtuiyanchuxieyileixing,chufeiyudaozheyangdeqingkuang:youliangzhongbutongdexieyizhichitongyizhongdizhileixingheshujuchuanshuleixing。ruguowomenbuzhimingshiyongnazhongxieyi,caozuoxitongshimeibanfazidongtuiyande。shiyong IPv4 dizhi,canshu af dezhiwei PF_INET。ruguoshiyong SOCK_STREAM chuanshushuju,namemanzuzhelianggetiaojiandexieyizhiyou TCP,yincikeyizheyanglaidiaoyong socket() hanshu:int tcp_socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); //IPPROTO_TCPbiaoshiTCPxieyifanhuizhi:chenggongfanhuiwenjianmiaoshufu,cuowufanhui-1。/usr/include/x86_64-linux-gnu/bits/socket.h/* Protocol families. */#define PF_UNSPEC 0 /* Unspecified. */#define PF_LOCAL 1 /* Local to host (pipes and file-domain). */#define PF_UNIX PF_LOCAL /* POSIX name for PF_LOCAL. */#define PF_FILE PF_LOCAL /* Another non-standard name for PF_LOCAL. */#define PF_INET 2 /* IP protocol family. */#define PF_AX25 3 /* Amateur Radio AX.25. */#define PF_IPX 4 /* Novell Internet Protocol. */#define PF_APPLETALK 5 /* Appletalk DDP. */#define PF_NETROM 6 /* Amateur radio NetROM. */#define PF_BRIDGE 7 /* Multiprotocol bridge. */#define PF_ATMPVC 8 /* ATM PVCs. */#define PF_X25 9 /* Reserved for X.25 project. */#define PF_INET6 10 /* IP version 6. */#define PF_ROSE 11 /* Amateur Radio X.25 PLP. */#define PF_DECnet 12 /* Reserved for DECnet project. */#define PF_NETBEUI 13 /* Reserved for 802.2LLC project. */#define PF_SECURITY 14 /* Security callback pseudo AF. */#define PF_KEY 15 /* PF_KEY key management API. */#define PF_NETLINK 16#define PF_ROUTE PF_NETLINK /* Alias to emulate 4.4BSD. */#define PF_PACKET 17 /* Packet family. */#define PF_ASH 18 /* Ash. */#define PF_ECONET 19 /* Acorn Econet. */#define PF_ATMSVC 20 /* ATM SVCs. */#define PF_RDS 21 /* RDS sockets. */#define PF_SNA 22 /* Linux SNA Project */#define PF_IRDA 23 /* IRDA sockets. */#define PF_PPPOX 24 /* PPPoX sockets. */#define PF_WANPIPE 25 /* Wanpipe API sockets. */#define PF_LLC 26 /* Linux LLC. */#define PF_IB 27 /* Native InfiniBand address. */#define PF_MPLS 28 /* MPLS. */#define PF_CAN 29 /* Controller Area Network. */#define PF_TIPC 30 /* TIPC sockets. */#define PF_BLUETOOTH 31 /* Bluetooth sockets. */#define PF_IUCV 32 /* IUCV sockets. */#define PF_RXRPC 33 /* RxRPC sockets. */#define PF_ISDN 34 /* mISDN sockets. */#define PF_PHONET 35 /* Phonet sockets. */#define PF_IEEE802154 36 /* IEEE 802.15.4 sockets. */#define PF_CAIF 37 /* CAIF sockets. */#define PF_ALG 38 /* Algorithm sockets. */#define PF_NFC 39 /* NFC sockets. */#define PF_VSOCK 40 /* vSockets. */#define PF_KCM 41 /* Kernel Connection Multiplexor. */#define PF_QIPCRTR 42 /* Qualcomm IPC Router. */#define PF_SMC 43 /* SMC sockets. */#define PF_MAX 44 /* For now.. *//* Address families. */#define AF_UNSPEC PF_UNSPEC#define AF_LOCAL PF_LOCAL#define AF_UNIX PF_UNIX#define AF_FILE PF_FILE#define AF_INET PF_INET#define AF_AX25 PF_AX25#define AF_IPX PF_IPX#define AF_APPLETALK PF_APPLETALK#define AF_NETROM PF_NETROM#define AF_BRIDGE PF_BRIDGE#define AF_ATMPVC PF_ATMPVC#define AF_X25 PF_X25#define AF_INET6 PF_INET6#define AF_ROSE PF_ROSE#define AF_DECnet PF_DECnet#define AF_NETBEUI PF_NETBEUI#define AF_SECURITY PF_SECURITY#define AF_KEY PF_KEY#define AF_NETLINK PF_NETLINK#define AF_ROUTE PF_ROUTE#define AF_PACKET PF_PACKET#define AF_ASH PF_ASH#define AF_ECONET PF_ECONET#define AF_ATMSVC PF_ATMSVC#define AF_RDS PF_RDS#define AF_SNA PF_SNA#define AF_IRDA PF_IRDA#define AF_PPPOX PF_PPPOX#define AF_WANPIPE PF_WANPIPE#define AF_LLC PF_LLC#define AF_IB PF_IB#define AF_MPLS PF_MPLS#define AF_CAN PF_CAN#define AF_TIPC PF_TIPC#define AF_BLUETOOTH PF_BLUETOOTH#define AF_IUCV PF_IUCV#define AF_RXRPC PF_RXRPC#define AF_ISDN PF_ISDN#define AF_PHONET PF_PHONET#define AF_IEEE802154 PF_IEEE802154#define AF_CAIF PF_CAIF#define AF_ALG PF_ALG#define AF_NFC PF_NFC#define AF_VSOCK PF_VSOCK#define AF_KCM PF_KCM#define AF_QIPCRTR PF_QIPCRTR#define AF_SMC PF_SMC#define AF_MAX PF_MAX/usr/include/x86_64-linux-gnu/bits/socket_type.h/* Types of sockets. */enum __socket_type{ SOCK_STREAM = 1, /* Sequenced, reliable, connection-based byte streams. */#define SOCK_STREAM SOCK_STREAM SOCK_DGRAM = 2, /* Connectionless, unreliable datagrams of fixed maximum length. */#define SOCK_DGRAM SOCK_DGRAM SOCK_RAW = 3, /* Raw protocol interface. */#define SOCK_RAW SOCK_RAW SOCK_RDM = 4, /* Reliably-delivered messages. */#define SOCK_RDM SOCK_RDM SOCK_SEQPACKET = 5, /* Sequenced, reliable, connection-based, datagrams of fixed maximum length. */#define SOCK_SEQPACKET SOCK_SEQPACKET SOCK_DCCP = 6, /* Datagram Congestion Control Protocol. */#define SOCK_DCCP SOCK_DCCP SOCK_PACKET = 10, /* Linux specific way of getting packets at the dev level. For writing rarp and other similar things on the user level. */#define SOCK_PACKET SOCK_PACKET /* Flags to be ORed into the type parameter of socket and socketpair and used for the flags parameter of paccept. */ SOCK_CLOEXEC = 02000000, /* Atomically set close-on-exec flag for the new descriptor(s). */#define SOCK_CLOEXEC SOCK_CLOEXEC SOCK_NONBLOCK = 00004000 /* Atomically mark descriptor(s) as non-blocking. */#define SOCK_NONBLOCK SOCK_NONBLOCK};/usr/include/linux/in.h#if __UAPI_DEF_IN_IPPROTO/* Standard well-defined IP protocols. */enum { IPPROTO_IP = 0, /* Dummy protocol for TCP */#define IPPROTO_IP IPPROTO_IP IPPROTO_ICMP = 1, /* Internet Control Message Protocol */#define IPPROTO_ICMP IPPROTO_ICMP IPPROTO_IGMP = 2, /* Internet Group Management Protocol */#define IPPROTO_IGMP IPPROTO_IGMP IPPROTO_IPIP = 4, /* IPIP tunnels (older KA9Q tunnels use 94) */#define IPPROTO_IPIP IPPROTO_IPIP IPPROTO_TCP = 6, /* Transmission Control Protocol */#define IPPROTO_TCP IPPROTO_TCP IPPROTO_EGP = 8, /* Exterior Gateway Protocol */#define IPPROTO_EGP IPPROTO_EGP IPPROTO_PUP = 12, /* PUP protocol */#define IPPROTO_PUP IPPROTO_PUP IPPROTO_UDP = 17, /* User Datagram Protocol */#define IPPROTO_UDP IPPROTO_UDP IPPROTO_IDP = 22, /* XNS IDP protocol */#define IPPROTO_IDP IPPROTO_IDP IPPROTO_TP = 29, /* SO Transport Protocol Class 4 */#define IPPROTO_TP IPPROTO_TP IPPROTO_DCCP = 33, /* Datagram Congestion Control Protocol */#define IPPROTO_DCCP IPPROTO_DCCP IPPROTO_IPV6 = 41, /* IPv6-in-IPv4 tunnelling */#define IPPROTO_IPV6 IPPROTO_IPV6 IPPROTO_RSVP = 46, /* RSVP Protocol */#define IPPROTO_RSVP IPPROTO_RSVP IPPROTO_GRE = 47, /* Cisco GRE tunnels (rfc 1701,1702) */#define IPPROTO_GRE IPPROTO_GRE IPPROTO_ESP = 50, /* Encapsulation Security Payload protocol */#define IPPROTO_ESP IPPROTO_ESP IPPROTO_AH = 51, /* Authentication Header protocol */#define IPPROTO_AH IPPROTO_AH IPPROTO_MTP = 92, /* Multicast Transport Protocol */#define IPPROTO_MTP IPPROTO_MTP IPPROTO_BEETPH = 94, /* IP option pseudo header for BEET */#define IPPROTO_BEETPH IPPROTO_BEETPH IPPROTO_ENCAP = 98, /* Encapsulation Header */#define IPPROTO_ENCAP IPPROTO_ENCAP IPPROTO_PIM = 103, /* Protocol Independent Multicast */#define IPPROTO_PIM IPPROTO_PIM IPPROTO_COMP = 108, /* Compression Header Protocol */#define IPPROTO_COMP IPPROTO_COMP IPPROTO_SCTP = 132, /* Stream Control Transport Protocol */#define IPPROTO_SCTP IPPROTO_SCTP IPPROTO_UDPLITE = 136, /* UDP-Lite (RFC 3828) */#define IPPROTO_UDPLITE IPPROTO_UDPLITE IPPROTO_MPLS = 137, /* MPLS in IP (RFC 4023) */#define IPPROTO_MPLS IPPROTO_MPLS IPPROTO_RAW = 255, /* Raw IP packets */#define IPPROTO_RAW IPPROTO_RAW IPPROTO_MAX};#endifbind()int bind(int sockfd, const struct sockaddr *addr,socklen_t addrlen);geisocketbangdingyigedizhijiegou(IP+duankouhao),sockethesockaddr_inzhongdedizhijiegouAF_INTdengdeyiyang。sockfd:sockethanshufanhuizhi,wenjianmiaoshufusturct sockaddr_in addr;addr.sin_family=AF_INT;addr.sin_port=htons(9527);addr.sin_addr.s_addr=htonl(INADDR_ANY);addr:(struct sockaddr&)&addr,shichuanrucanshuaddlen:sizeof(addr),dizhijiegoudedaxiaofanhuizhi:chenggong:0;shibai:-1listen()int listen(int sockfd, int backlog);shezhinenggoutongshiyufuwuqijianlilianjiedekehuduanshangxian(tongshijinxing3ciwoshoudekehuduanshuliang)sockfd:sockethanshufanhuizhi,wenjianmiaoshufubacklog:shangxianshuzhi,zuidawei128。fanhuizhi:chenggong:0;shibai:-1accept()int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen);zusaidengdaikehuduanjianlilianjie,chenggongshifanhuiyigeyukehuduanchenggonglianjiedesocketwenjianmiaoshufusockfd:zuikaishijianlidesocketwenjianmiaoshufuaddr:chuanchucanshu,chenggongyufuwuqijianlilianjiedenagekehuduandedizhijiegou(IP+port)addrlen:chuanruchuanchucanshu。ru:addrdedaxiao,chu:kehuduanaddrdeshijidaxiao。socklen_t clit_addr_len = sizeof(struct sockaddr),chuanrucanshu&clit_addr_len。fanhuizhi:chenggong,fanhuixinjianlidesocketdewenjianmiaoshufu,feifuzhengshushibai:-1connect()int connect(int sockfd, const struct sockaddr *addr,socklen_t addrlen);yufuwuqijianlilianjiesockfd:sockethanshufanhuizhiaddr:chuanrucanshu,fuwuqidizhijiegouaddrlen:fuwuqidizhijiegouchangdufanhuizhi:chenggong0,shibai-1。ruguobushiyongbindbangdingkehuduandizhijiegou,xitonghui“yinshibangding”。yigejiandandelizi,kehuduangeifuwuqifayichuanzifuchuan,fuwuqijiangjieshoudaozifuchuanzhuanhuanweidaxie,zaifagonggeikehuduan。zheliyongderead、writehanshu,herecv、sendqubiehoumianzaiyanjiu。//server.c#include#include #include #include #include #include #include #include #define SERVER_PORT 12345void sys_error(const char *str){ perror(str); exit(-1);} int main(int argc, char const *argv[]){ int sfd,cfd,ret=0; socklen_t client_addr_len; char buf[1024]; char client_IP[16]; struct sockaddr_in server_addr,client_addr; server_addr.sin_family = AF_INET; server_addr.sin_port = htons(SERVER_PORT); server_addr.sin_addr.s_addr=htonl(INADDR_ANY); sfd = socket(AF_INET,SOCK_STREAM,0); if(sfd==-1) { sys_error("socket error"); } ret = bind(sfd,(struct sockaddr*)&server_addr,sizeof(server_addr)); if(ret==-1) { sys_error("bind error"); } ret = listen(sfd,128); if(ret==-1) { sys_error("listen error"); } client_addr_len = sizeof(client_addr); cfd = accept(sfd,(struct sockaddr*)&client_addr,&client_addr_len); if(cfd==-1) { sys_error("accept error"); } //dayinlianjieshangdekehuduanIPheduankouhao printf("client_ip:%s port:%d\n",inet_ntop(AF_INET,&client_addr.sin_addr.s_addr,client_IP,sizeof(client_IP)),ntohs(client_addr.sin_port) ); while(1) { ret = read(cfd,buf,sizeof(buf)); write(STDOUT_FILENO,buf,ret); for(int i=0;i#include #include #include #include #include #include #include #define SERVER_PORT 12347void sys_error(const char *str){ perror(str); exit(-1);} int main(int argc, char const *argv[]){ int cfd,ret=0; char buf[1024]; struct sockaddr_in client_addr,server_addr; server_addr.sin_family = AF_INET; server_addr.sin_port = htons(SERVER_PORT); //server_addr.sin_addr.s_addr=htonl(INADDR_ANY); inet_pton(AF_INET,"127.0.0.1",&server_addr.sin_addr.s_addr); cfd = socket(AF_INET,SOCK_STREAM,0); if(cfd==-1) { sys_error("socket error"); } ret = connect(cfd,(struct sockaddr*)&server_addr,sizeof(server_addr)); if(ret==-1) { sys_error("connect error"); } while(1) { //scanf("%s",buf); gets(buf);//zuihaoshiyongfgets。 write(cfd,buf,strlen(buf)); ret = read(cfd,buf,sizeof(buf)); write(STDOUT_FILENO,buf,ret); printf("\n"); } close(cfd); return 0;}TCPsanciwoshou,duiyingdehanshujiushiaccept,connect。

5. 雁(Yan)门(Men)关(Guan):在(Zai)山(Shan)西(Xi)省(Sheng)忻(Xin)州(Zhou)市(Shi)代(Dai)县(Xian)以(Yi)北(Bei)的(De)雁(Yan)门(Men)山(Shan)中(Zhong),这(Zhe)座(Zuo)古(Gu)老(Lao)关(Guan)隘(Ai)见(Jian)证(Zheng)无(Wu)数(Shu)历(Li)史(Shi)风(Feng)云(Yun),是(Shi)重(Zhong)要(Yao)军(Jun)事(Shi)要(Yao)地(Di)。

入行之后马诺见识到了模特行业的残酷,工作时间不固定、工作不稳定,而且只能吃青春饭。上海第一批女光棍现状第三章 玩弄反派被整破产的大小姐(3)_今天也要教男主...

使用者可以随时观测外部环境这一点在使用各类Vision Pro功能时也有所体现发布会的演示中用户可以一边用手势操作虚拟空间的App一边操作现实空间里的Mac电脑有业内人士表示该功能或更接近增强现实的概念

发布于:恒山区
声明:该文观点仅代表作者本人,搜狐号系信息发布平台,搜狐仅提供信息存储空间服务。
意见反馈 合作

Copyright ? 2023 Sohu All Rights Reserved

搜狐公司 版权所有