socket

时间:2024-05-17 22:18:42编辑:莆田seo君

socket什么意思?

socket是函数。socket()函数用于根据指定的地址族、数据类型和协议来分配一个套接口的描述字及其所用的资源。如果协议protocol未指定(等于0),则使用缺省的连接方式。相关信息:SOCK_STREAM 提供有序的、可靠的、双向的和基于连接的字节流,使用带外数据传送机制,为Internet地址族使用TCP。SOCK_DGRAM 支持无连接的、不可靠的和使用固定大小(通常很小)缓冲区的数据报服务,为Internet地址族使用UDP。SOCK_STREAM类型的套接口为全双向的字节流。对于流类套接口,在接收或发送数据前必需处于已连接状态。用connect()调用建立与另一套接口的连接,连接成功后,即可用send()和recv()传送数据。当会话结束后,调用closesocket()。带外数据根据规定用send()和recv()来接收。

[create_time]2021-09-20 13:49:21[/create_time]2021-10-02 11:06:13[finished_time]1[reply_count]0[alue_good]小枫带你看生活[uname]https://pic.rmb.bdstatic.com/bjh/c23d251155e58db57e11360127ca33aa.png[avatar]享受生活中的美好瞬间![slogan]享受生活中的美好瞬间![intro]1234[view_count]

socket怎么读

socket的英语读音是[ˈsɒkɪt]。一、释义1、动词:把……装入插座;给……配插座。2、名词:(电源)插座;窝;(电器上的)插口,插孔,管座;托座;孔穴;槽;臼。二、例句1、Is the cable long enough to reach the socket?电线够得着插座吗?2、Connect the release switch to the remote control socket of the camera.把释放开关接到相机遥控插口。3、All new PCs now have USB sockets.新的个人计算机现在都有通用串行总线插孔。4、I haven't yet met a newborn who could stretch her fingers into a socket from her crib.我还没有见过一个新生儿可以把她的手指伸进婴儿床的托座里。5、He put the electric plug into the socket.他把电插头插入插座。

[create_time]2022-12-23 16:16:29[/create_time]2022-12-09 14:44:43[finished_time]1[reply_count]0[alue_good]环易巧fH[uname]https://himg.bdimg.com/sys/portrait/item/wise.1.55157e91.4-qachHrWB_K2rHLXq5Vfg.jpg?time=10429&tieba_portrait_time=10429[avatar]超过30用户采纳过TA的回答[slogan]这个人很懒,什么都没留下![intro]66[view_count]

上一篇:so what是什么意思

下一篇:家庭办公室