What is the main difference between bidirectional and directional sockets?

Bidirectional means that incoming and outgoing data arrives on the same channel (sockets), in a classic socket it is. For example, you want to connect to a server: you create a socket, send and receive data on the same channel. Isn't that bidirectional?

What is different from websockets (bidirectional), only that they run in browsers? Is that the difference?

Another question: what happens during the time bind()on the servers; Is it used to implement the TCP stack of the OS to which the socket should be sent to messages on this port?

+4
source share
2

, , . ( ), . shutdown(), , (.. shutdown(SD_SEND) , shutdown(SD_RECEIVE) ).

WebSocket - , , -, WebSocket. WebSocket / , , , , .

bind(), (, ), , IP/Port . (UDP, TCP ..), IP/Port- IP- . , , .

bind() , connect() , bind() . bind() , , , ( , ..).

bind(), IP-, , .

+5

- - http, . HTTP-, HTTP- . , , . , + . , , .

Websockets - HTTP-. . HTTP, , HTTP-, TCP-. , . CONNECT, (https) -.

, , Websocket -, ( ), -, Websockets. , Websockets UDP TCP ( - ). , https- Websockets, Websockets SSL. -, , -, -, .

, https://blog.genua.de/blog/post/loecher-in-der-firewall-mit-websockets.html, , Websockets .

0

All Articles