socket是什么意思,socket中文翻译,socket发音、用法及例句

•socket

socket发音

英:['sɒkɪt]  美:[ˈsɑkɪt]

英:  美:

socket中文意思翻译

vt.装上或**入**座

n.**座, **口, 窝, 穴孔

socket词形变化

动词过去分词: socketed |动词第三人称单数: sockets |动词过去式: socketed |动词现在分词: socketing |

socket常见例句

1 、Closes the socket connection and allows reuse of the socket.───关闭套接字连接并允许重用套接字。

2 、He bent down to disconnect the plug from the socket.───他弯下腰,把**头从**座里拔出来。

3 、A socket operation was attempted to an unreachable network.───向一个无法连接的网络尝试了一个套接字操作。

4 、Send one byte of urgent data on the socket.───在套接字上发送一个字节的紧急数据。

5 、If you are using a connectionless Socket, specifying Send will have no effect.───如果当前使用的是无连接的Socket,则指定Send将不会产生任何效果。

6 、Pull up the CPU socket lever to 90-degree angle.───将主机板上的CPU脚座拉杆往外推出90度.

7 、DD> Connects this socket to the specified port number on the specified host.───将套接字连接到指定主机的指定端口。

8 、He set a socket in each pedestal.───他把每根基座上都按上了灯芯盘。

9 、Where possible, screws will be hex socket head cap screws.───只要空间允许,都使用内六角沉头螺丝,其它种类的螺丝,譬如固定螺丝,必须是内六角的。

10 、To allocate one thread per open socket connection.───它们为每个打开的socket连接分配一个线程。

11 、If this socket has an associated channel then the channel is closed as well.───如果此套接字有对应通道,那么同时关闭通道。

12 、Overloaded its socket, stunned it for a bit.─── 让它的电路超负荷 电晕了它

13 、She fear her eyes may actually pop out of their socket .───她害怕她的眼睛会真的从眼窝里瞪出来。

14 、Pull the bulb from the socket.───从灯座拔出灯泡。

15 、Position the bulb socket in the lamp and rotate clockwise.───将灯泡灯座置于灯中,并顺时针转动。

16 、A socket operation encountered a dead network.───套接字操作遇到了一个已死的网络。

17 、Closes the socket of the connection.───关闭连接的套接字。

18 、Can't send after socket shutdown.───套接字关闭后无法发送。

19 、Processing guidelines-Electric socket welding of PP.───PP承**热熔方法说明.

20 、I couldn't even rescue a, a bulb from a socket.─── 现在就是换个灯泡我都无能为力

21 、Excuse me ,but something is wrong with this socket.───对不起,这个**座坏了.

22 、For headphones listening, connect the headphones plug into the "phones"socket.───如用头戴耳机收听,请要标有“phone"字样的**座连接头戴耳机。

23 、Creates an unbound server socket.───创建无绑定服务器套接字。

24 、Position bulb in socket and push into place.───将灯泡**于**座并推入适当位置。

25 、Instance, which acts as a factory for secure socket factories.───实例,这个实例充当安全套接字工厂的工厂。

26 、The socket has an established connection.───套结字确立连接。

27 、Push my shoulder back into its socket.─── 把我的肩膀扳回到这个位置

28 、Thw wall socket sparked with blue fire.───墙上的**座发出蓝色的火光。

29 、Plug the power wires of protectors into the power input socket.───将保护器的电源线**在电源输入**座上。

30 、You nearly pulled my arm out of the socket.─── 你差点没把我的胳膊扯下来

31 、TZ-HD two-outlet socket for superpower air-conditioner 1.───TZ-HD 超级大功率空调专用**座(二联) 1. 精良选材 专门研制开发的特殊工程塑料,是塑料领域的高科技结晶。

32 、Push the white retaining clips on each side of the memory socket outward.───将存储模块**槽两端的白色固定卡榫扳开。

33 、A socket operation was attempted to an unreachable host.───套接字操作尝试一个无法连接的主机。

34 、Unlock the socket by pulling the lever out and up to a 90-100oangle.───将处理器**座的固定扳手扳起至90度角的位置。

35 、After loosening bolts with a 9/16" socket, remove bolts completly.───在用9/16英寸套筒松开螺栓后,将螺栓完全拆卸下来。

36 、The machine I used is in the socket in my lab.─── 我用的时光机 就在我实验室的**座里

37 、Do place a shaving mirror close to the shaver socket.───在剃须刀**座边上装一面放大镜。

38 、The socket on the wall is broken, isn't it?───墙上的**座坏了,不是吗?

39 、He put the plug in the socket.───他将**头**入**座。

40 、Use this returned Socket to call the Send or Receive method.───可以使用此返回的Socket来调用Send或Receive方法。

41 、To close the socket connection.───以关闭套接字连接。

42 、Not all socket options are supported.───不是所有的套接字选项都受支持。

43 、Position socket in lamp and rotate 1/4 turn.───固定**座于灯并将其旋转90度。

44 、A blind socket;a blind passage.───封死的孔;死路

45 、She put the electric plug into the socket.───她将电**头**到了**座里。

46 、Creates either a stream or a datagram socket.───创建数据流或数据报套接字。

47 、She pushed the plug into the (electric) socket on the wall.───她把**头**入墙上的**座里。

48 、Just put the plug in the socket and switch on the machine.───只需将**头**入**座并开动机器就行了。

49 、DD>Create a multicast socket.───创建一个多播套接字。

50 、I had a hairline fracture in my orbital socket.─── 我在眼窝里有一条发丝状骨裂

51 、Creates a new socket for a connection.───创建连接的新套接字。

52 、Put the lamp in the socket .then put the lamp shade over the lamp.───将光管**进**口,然后将光管外罩套在灯管上。

53 、Fully unwind the power cord and plug it into an earthed socket.───将电源线展开并**入接地的**座中。

54 、Will delay closing a socket in an attempt to send all pending data.───在尝试发送所有挂起数据时是否延迟关闭套接字。

55 、All right. I'm coming. I'm trying to find a socket for my shaver.───好的,就来.我正在为我的剃须刀找电源**口.

56 、Connects this socket to the specified port on the named host.───将套接字连接到指定名称主机的指定端口。

57 、An invalid pointer address was detected by the underlying socket provider.───基础套接字提供程序检测到无效的指针地址。

58 、He put the electric plug into the socket.───他把电**头**入**座。

59 、The smoldering rushes in the wall socket threw only faint light.───墙上壁架上燃烧着的灯芯草,发出微弱的光线。

60 、Places the input stream for this socket at "end of stream".───将套接字的输入流设置为位于“数据流末”。

61 、Operation not supported on socket.───套接字上不支持的操作。

62 、Or, if the address is null, create an unbound socket.───创建一个绑定在指定套接字地址的多播套接字。

63 、The version of the underlying socket provider is out of range.───基础套接字提供程序的版本超出范围。

64 、No, I have not seen your mini fluted socket.─── 没有 我没看到你的迷你凹槽**座

65 、Create a multicast socket and bind it to a specific port.───创建一个绑定在指定端口的多播套接字。

66 、An undependable worker;an undependable lamp socket.───一个靠不住的工人,性能不清的电灯**座

67 、You yanked her arm out of its socket.─── 你们还把她的胳膊拽到脱臼

68 、Values that specifies the addressing scheme of the socket.───值之一,它指定套接字的寻址方案。

69 、There is an electric socket in the wall.───墙上有个电源**座。

70 、For most people, BSD socket concept is one of them.───对于大多数人来说,BSD socket 的概念就是其中一个。

71 、Closes the socket connection to a client.───关闭到客户端的套接字连接。

72 、Have you put the plug in the socket?───你有把**头**座吗?

73 、Remove sidemarker socket from lamp.───从灯上拆卸侧面识别信号灯**座

74 、The BSD socket code is in net/socket.───BSD套接口代码位于net/socket.

75 、Binds this socket to the specified port number on the specified host.───将套接字绑定到指定的端口和地址。

76 、This is the top of the left eye socket, the top of the right eye socket, the left nasal bone.─── 这是左眼眶顶部 右眼眶顶部 左鼻骨

77 、Associate this socket with the specified handle of a companion interface.───将此套接字与附带接口的指定句柄关联。

78 、Is not in the socket family.───不在套接字族中。

79 、The socket number is not valid.───套接字号无效。

80 、It's like making out with a wall socket.─── 我感覺就像在和**座親嘴一樣

81 、She eased the ball-shaped doodad back into its socket.───她把那个球形小装饰品慢慢放回它的套子。

82 、Enduring Deep Peridot Matches a Yellow or Blue Socket.───坚硬翠榄石 对应**或蓝色**槽。

83 、Never poke a finger or scissors into an electric socket .───千万不要把手指或剪刀**进电源**座。

84 、Mono Line-out, phono socket.───单声道线路输出,唱机**座。

85 、Duplication of the socket reference failed.───套接字引用的复制失败。

86 、As a comparatively new IPC,Netlink socket has its own predominance.───作为一种比较新的进程间通信机制,Netlink套接字有其自身的优势。

87 、The transformer simply plugs into a mains socket.───变压器只是简单**在电源**座中。

88 、Remove bulb socket from lamp.───从灯上拆除灯泡**座。

89 、Enables a socket to be bound for exclusive access.───使套接字能够为独占访问进行绑定。

90 、Do not use the same electrical socket for too many electrical appliances.───不可太多电器使用同一**座。

socket通信原理

socket通信原理是一种“打开—读/写—关闭”模式的实现,服务器和客户端各自维护一个“文件”,在建立连接打开后,可以向文件写入内容供对方读取或者读取对方内容,通讯结束时关闭文件。

Socket在应用层和传输层之间的一个抽象层,它把 TCP/IP 层复杂的操作抽象为几个简单的接口,供应用层调用实现进程在网络中的通信。Socket 起源于 UNIX,在 UNIX 一切皆文件的思想下,进程间通信就被冠名为文件描述符(file descriptor)。

Socket 保证了不同计算机之间的通信,也就是网络通信。对于网站,通信模型是服务器与客户端之间的通信。两端都建立了一个 Socket 对象,然后通过 Socket 对象对数据进行传输。通常服务器处于一个无限循环,等待客户端的连接。

扩展资料

SOCK_STREAM类型的套接口为全双向的字节流。对于流类套接口,在接收或发送数据前必需处于已连接状态。用connect()调用建立与另一套接口的连接,连接成功后,即可用send()和recv()()传送数据。当会话结束后,调用closesocket()。带外数据根据规定用send()和recv()来接收。

实现SOCK_STREAM类型套接口的通讯协议保证数据不会丢失也不会重复。如果终端协议有缓冲区空间,且数据不能在一定时间成功发送,则认为连接中断,其后续的调用也将以WSAETIMEOUT错误返回。

SOCK_DGRAM类型套接口允许使用sendto()和recvfrom()从任意端口发送或接收数据报。如果这样一个套接口用connect()与一个指定端口连接,则可用send()和recv()与该端口进行数据报的发送与接收。

SOCKET到底是什么类型

哈哈,我用自己的语言来说一下

打开英文词霸,发现socket的中文意思是**座的意思。

简言之socket就是:有**座,有**头,有电器(比如电灯)。

**座带电, **头**入**座以后,就可以把电流通到电器里面去,这时候电灯就可以工作了。

引申一下呢:

**座:相当于服务端程序,他可以向客户(电器)提供资料,任何人只要满足一定条件就可以去服务端取资料(电流);

**头:就是socket,它是一种抽象的东西,也可以理解成一种规范,大家都承诺会尊守这一个规范,比如**头有三脚的,两脚的,四脚的,等等,大小也有规定。只要是**座能接受的就可以**入进去。

电流: 从服务器取下来的资料就可以认为是电流,可以供人参考查询等等。

电器: 我们的客户端程序就是电器,比如IE其实就是客户端程序,**也是。我们利用IE,给他指定一个**,他就会利用HTTP协议去指定的服务器网站取下新闻等资讯给我们看。给我们看的过程需要程序进行分解,如播音乐、放动画等等;

socket的工作过程:

简述一下**聊天的工作原理。

假设腾讯公司建立了一个服务器,socketServer 并打开了 5555 这个端口

其实就是给了全中国的人一个**座,并且规定只接收规格是 5555的**头,大家都可以把**头**到腾讯公司的服务器上去取电流;

这时候玩家A 利用客户端 **上去了,于是他与服务器建立了通道。有电流的联系了,并且是双向的,他即可以向服务器取消息,又可以把消息发到服务器。

于是他向服务器发送了一条消息(电流)在消息中说明了想要说的话,并且指明要发给一个叫玩家B的人。

这时候服务器接收了这条消息,暂存。

过了一会儿,玩家B也**上去了**座,并向服务器发送了一条消息,说我上来了。

服务器检测到玩家B正好是之前玩家A要发送的对象,于是通过通道把消息发给了玩家B,这样玩家B就看到了玩家A说的话。

Connection :通道,连接,可以是Socket的。并且可以从中得到InputStream 和OutputStream;

OutputStream: 有了通道就可以以流的形式发送想要发送的东西,比方有了电线才可以把电流传到另一端,在网络中大家传送的都是字节流byte

inputStream: 有了通道就可以以流的形式接收想要收的东西。

现在可以通过OutputStream把想要说的话向服务器发送,通过Socket通道

也可以通过InputStream向服务器索要与自己相关的内容。

明白未?