socket是什么意思,socket中文翻譯,socket發(fā)音、用法及例句
?socket
socket發(fā)音
英:['s?k?t] 美:[?sɑk?t]
英: 美:
socket中文意思翻譯
vt.裝上或**入**座
n.**座, **口, 窩, 穴孔
socket詞形變化
動(dòng)詞過(guò)去分詞: socketed | 動(dòng)詞第三人稱(chēng)單數: sockets | 動(dòng)詞過(guò)去式: socketed | 動(dòng)詞現在分詞: socketing |
socket常見(jiàn)例句
1 、Closes the socket connection and allows reuse of the socket.───關(guān)閉套接字連接并允許重用套接字。
2 、He bent down to disconnect the plug from the socket.───他彎下腰,把**頭從**座里拔出來(lái)。
3 、A socket operation was attempted to an unreachable network.───向一個(gè)無(wú)法連接的網(wǎng)絡(luò )嘗試了一個(gè)套接字操作。
4 、Send one byte of urgent data on the socket.───在套接字上發(fā)送一個(gè)字節的緊急數據。
5 、If you are using a connectionless Socket, specifying Send will have no effect.───如果當前使用的是無(wú)連接的Socket,則指定Send將不會(huì )產(chǎn)生任何效果。
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.───他把每根基座上都按上了燈芯盤(pán)。
9 、Where possible, screws will be hex socket head cap screws.───只要空間允許,都使用內六角沉頭螺絲,其它種類(lèi)的螺絲,譬如固定螺絲,必須是內六角的。
10 、To allocate one thread per open socket connection.───它們?yōu)槊總€(gè)打開(kāi)的socket連接分配一個(gè)線(xiàn)程。
11 、If this socket has an associated channel then the channel is closed as well.───如果此套接字有對應通道,那么同時(shí)關(guān)閉通道。
12 、Overloaded its socket, stunned it for a bit.─── 讓它的電路超負荷 電暈了它
13 、She fear her eyes may actually pop out of their socket .───她害怕她的眼睛會(huì )真的從眼窩里瞪出來(lái)。
14 、Pull the bulb from the socket.───從燈座拔出燈泡。
15 、Position the bulb socket in the lamp and rotate clockwise.───將燈泡燈座置于燈中,并順時(shí)針轉動(dòng)。
16 、A socket operation encountered a dead network.───套接字操作遇到了一個(gè)已死的網(wǎng)絡(luò )。
17 、Closes the socket of the connection.───關(guān)閉連接的套接字。
18 、Can't send after socket shutdown.───套接字關(guān)閉后無(wú)法發(fā)送。
19 、Processing guidelines-Electric socket welding of PP.───PP承**熱熔方法說(shuō)明.
20 、I couldn't even rescue a, a bulb from a socket.─── 現在就是換個(gè)燈泡我都無(wú)能為力
21 、Excuse me ,but something is wrong with this socket.───對不起,這個(gè)**座壞了.
22 、For headphones listening, connect the headphones plug into the "phones"socket.───如用頭戴耳機收聽(tīng),請要標有“phone"字樣的**座連接頭戴耳機。
23 、Creates an unbound server socket.───創(chuàng )建無(wú)綁定服務(wù)器套接字。
24 、Position bulb in socket and push into place.───將燈泡**于**座并推入適當位置。
25 、Instance, which acts as a factory for secure socket factories.───實(shí)例,這個(gè)實(shí)例充當安全套接字工廠(chǎng)的工廠(chǎng)。
26 、The socket has an established connection.───套結字確立連接。
27 、Push my shoulder back into its socket.─── 把我的肩膀扳回到這個(gè)位置
28 、Thw wall socket sparked with blue fire.───墻上的**座發(fā)出藍色的火光。
29 、Plug the power wires of protectors into the power input socket.───將保護器的電源線(xiàn)**在電源輸入**座上。
30 、You nearly pulled my arm out of the socket.─── 你差點(diǎn)沒(méi)把我的胳膊扯下來(lái)
31 、TZ-HD two-outlet socket for superpower air-conditioner 1.───TZ-HD 超級大功率空調專(zhuān)用**座(二聯(lián)) 1. 精良選材 專(zhuān)門(mén)研制開(kāi)發(fā)的特殊工程塑料,是塑料領(lǐng)域的高科技結晶。
32 、Push the white retaining clips on each side of the memory socket outward.───將存儲模塊**槽兩端的白色固定卡榫扳開(kāi)。
33 、A socket operation was attempted to an unreachable host.───套接字操作嘗試一個(gè)無(wú)法連接的主機。
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英寸套筒松開(kāi)螺栓后,將螺栓完全拆卸下來(lái)。
36 、The machine I used is in the socket in my lab.─── 我用的時(shí)光機 就在我實(shí)驗室的**座里
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來(lái)調用Send或Receive方法。
41 、To close the socket connection.───以關(guān)閉套接字連接。
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.───創(chuàng )建數據流或數據報套接字。
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.───只需將**頭**入**座并開(kāi)動(dòng)機器就行了。
49 、DD>Create a multicast socket.───創(chuàng )建一個(gè)多播套接字。
50 、I had a hairline fracture in my orbital socket.─── 我在眼窩里有一條發(fā)絲狀骨裂
51 、Creates a new socket for a connection.───創(chuàng )建連接的新套接字。
52 、Put the lamp in the socket .then put the lamp shade over the lamp.───將光管**進(jìn)**口,然后將光管外罩套在燈管上。
53 、Fully unwind the power cord and plug it into an earthed socket.───將電源線(xiàn)展開(kāi)并**入接地的**座中。
54 、Will delay closing a socket in an attempt to send all pending data.───在嘗試發(fā)送所有掛起數據時(shí)是否延遲關(guān)閉套接字。
55 、All right. I'm coming. I'm trying to find a socket for my shaver.───好的,就來(lái).我正在為我的剃須刀找電源**口.
56 、Connects this socket to the specified port on the named host.───將套接字連接到指定名稱(chēng)主機的指定端口。
57 、An invalid pointer address was detected by the underlying socket provider.───基礎套接字提供程序檢測到無(wú)效的指針地址。
58 、He put the electric plug into the socket.───他把電**頭**入**座。
59 、The smoldering rushes in the wall socket threw only faint light.───墻上壁架上燃燒著(zhù)的燈芯草,發(fā)出微弱的光線(xiàn)。
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.───創(chuàng )建一個(gè)綁定在指定套接字地址的多播套接字。
63 、The version of the underlying socket provider is out of range.───基礎套接字提供程序的版本超出范圍。
64 、No, I have not seen your mini fluted socket.─── 沒(méi)有 我沒(méi)看到你的迷你凹槽**座
65 、Create a multicast socket and bind it to a specific port.───創(chuàng )建一個(gè)綁定在指定端口的多播套接字。
66 、An undependable worker;an undependable lamp socket.───一個(gè)靠不住的工人,性能不清的電燈**座
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.───墻上有個(gè)電源**座。
70 、For most people, BSD socket concept is one of them.───對于大多數人來(lái)說(shuō),BSD socket 的概念就是其中一個(gè)。
71 、Closes the socket connection to a client.───關(guān)閉到客戶(hù)端的套接字連接。
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.───將此套接字與附帶接口的指定句柄關(guān)聯(lián)。
78 、Is not in the socket family.───不在套接字族中。
79 、The socket number is not valid.───套接字號無(wú)效。
80 、It's like making out with a wall socket.─── 我感覺(jué)就像在和**座親嘴一樣
81 、She eased the ball-shaped doodad back into its socket.───她把那個(gè)球形小裝飾品慢慢放回它的套子。
82 、Enduring Deep Peridot Matches a Yellow or Blue Socket.───堅硬翠欖石 對應**或藍色**槽。
83 、Never poke a finger or scissors into an electric socket .───千萬(wàn)不要把手指或剪刀**進(jìn)電源**座。
84 、Mono Line-out, phono socket.───單聲道線(xiàn)路輸出,唱機**座。
85 、Duplication of the socket reference failed.───套接字引用的復制失敗。
86 、As a comparatively new IPC,Netlink socket has its own predominance.───作為一種比較新的進(jìn)程間通信機制,Netlink套接字有其自身的優(yōu)勢。
87 、The transformer simply plugs into a mains socket.───變壓器只是簡(jiǎn)單**在電源**座中。
88 、Remove bulb socket from lamp.───從燈上拆除燈泡**座。
89 、Enables a socket to be bound for exclusive access.───使套接字能夠為獨占訪(fǎng)問(wèn)進(jìn)行綁定。
90 、Do not use the same electrical socket for too many electrical appliances.───不可太多電器使用同一**座。
socket通信原理
socket通信原理是一種“打開(kāi)—讀/寫(xiě)—關(guān)閉”模式的實(shí)現,服務(wù)器和客戶(hù)端各自維護一個(gè)“文件”,在建立連接打開(kāi)后,可以向文件寫(xiě)入內容供對方讀取或者讀取對方內容,通訊結束時(shí)關(guān)閉文件。
Socket在應用層和傳輸層之間的一個(gè)抽象層,它把 TCP/IP 層復雜的操作抽象為幾個(gè)簡(jiǎn)單的接口,供應用層調用實(shí)現進(jìn)程在網(wǎng)絡(luò )中的通信。Socket 起源于 UNIX,在 UNIX 一切皆文件的思想下,進(jìn)程間通信就被冠名為文件描述符(file descriptor)。
Socket 保證了不同計算機之間的通信,也就是網(wǎng)絡(luò )通信。對于網(wǎng)站,通信模型是服務(wù)器與客戶(hù)端之間的通信。兩端都建立了一個(gè) Socket 對象,然后通過(guò) Socket 對象對數據進(jìn)行傳輸。通常服務(wù)器處于一個(gè)無(wú)限循環(huán),等待客戶(hù)端的連接。
擴展資料
SOCK_STREAM類(lèi)型的套接口為全雙向的字節流。對于流類(lèi)套接口,在接收或發(fā)送數據前必需處于已連接狀態(tài)。用connect()調用建立與另一套接口的連接,連接成功后,即可用send()和recv()()傳送數據。當會(huì )話(huà)結束后,調用closesocket()。帶外數據根據規定用send()和recv()來(lái)接收。
實(shí)現SOCK_STREAM類(lèi)型套接口的通訊協(xié)議保證數據不會(huì )丟失也不會(huì )重復。如果終端協(xié)議有緩沖區空間,且數據不能在一定時(shí)間成功發(fā)送,則認為連接中斷,其后續的調用也將以WSAETIMEOUT錯誤返回。
SOCK_DGRAM類(lèi)型套接口允許使用sendto()和recvfrom()從任意端口發(fā)送或接收數據報。如果這樣一個(gè)套接口用connect()與一個(gè)指定端口連接,則可用send()和recv()與該端口進(jìn)行數據報的發(fā)送與接收。
SOCKET到底是什么類(lèi)型
哈哈,我用自己的語(yǔ)言來(lái)說(shuō)一下
打開(kāi)英文詞霸,發(fā)現socket的中文意思是**座的意思。
簡(jiǎn)言之socket就是:有**座,有**頭,有電器(比如電燈)。
**座帶電, **頭**入**座以后,就可以把電流通到電器里面去,這時(shí)候電燈就可以工作了。
引申一下呢:
**座:相當于服務(wù)端程序,他可以向客戶(hù)(電器)提供資料,任何人只要滿(mǎn)足一定條件就可以去服務(wù)端取資料(電流);
**頭:就是socket,它是一種抽象的東西,也可以理解成一種規范,大家都承諾會(huì )尊守這一個(gè)規范,比如**頭有三腳的,兩腳的,四腳的,等等,大小也有規定。只要是**座能接受的就可以**入進(jìn)去。
電流: 從服務(wù)器取下來(lái)的資料就可以認為是電流,可以供人參考查詢(xún)等等。
電器: 我們的客戶(hù)端程序就是電器,比如IE其實(shí)就是客戶(hù)端程序,**也是。我們利用IE,給他指定一個(gè)**,他就會(huì )利用HTTP協(xié)議去指定的服務(wù)器網(wǎng)站取下新聞等資訊給我們看。給我們看的過(guò)程需要程序進(jìn)行分解,如播音樂(lè )、放動(dòng)畫(huà)等等;
socket的工作過(guò)程:
簡(jiǎn)述一下**聊天的工作原理。
假設騰訊公司建立了一個(gè)服務(wù)器,socketServer 并打開(kāi)了 5555 這個(gè)端口
其實(shí)就是給了全中國的人一個(gè)**座,并且規定只接收規格是 5555的**頭,大家都可以把**頭**到騰訊公司的服務(wù)器上去取電流;
這時(shí)候玩家A 利用客戶(hù)端 **上去了,于是他與服務(wù)器建立了通道。有電流的聯(lián)系了,并且是雙向的,他即可以向服務(wù)器取消息,又可以把消息發(fā)到服務(wù)器。
于是他向服務(wù)器發(fā)送了一條消息(電流)在消息中說(shuō)明了想要說(shuō)的話(huà),并且指明要發(fā)給一個(gè)叫玩家B的人。
這時(shí)候服務(wù)器接收了這條消息,暫存。
過(guò)了一會(huì )兒,玩家B也**上去了**座,并向服務(wù)器發(fā)送了一條消息,說(shuō)我上來(lái)了。
服務(wù)器檢測到玩家B正好是之前玩家A要發(fā)送的對象,于是通過(guò)通道把消息發(fā)給了玩家B,這樣玩家B就看到了玩家A說(shuō)的話(huà)。
Connection :通道,連接,可以是Socket的。并且可以從中得到InputStream 和OutputStream;
OutputStream: 有了通道就可以以流的形式發(fā)送想要發(fā)送的東西,比方有了電線(xiàn)才可以把電流傳到另一端,在網(wǎng)絡(luò )中大家傳送的都是字節流byte
inputStream: 有了通道就可以以流的形式接收想要收的東西。
現在可以通過(guò)OutputStream把想要說(shuō)的話(huà)向服務(wù)器發(fā)送,通過(guò)Socket通道
也可以通過(guò)InputStream向服務(wù)器索要與自己相關(guān)的內容。
明白未?
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。