{"id":730,"date":"2026-10-07T07:20:21","date_gmt":"2026-10-07T07:20:21","guid":{"rendered":"https:\/\/jonahlowry.com\/?p=730"},"modified":"2026-10-22T08:51:25","modified_gmt":"2026-10-22T08:51:25","slug":"websocket-and-its-difference-from-http-2","status":"publish","type":"post","link":"http:\/\/jonahlowry.com\/?p=730","title":{"rendered":"Websocket And Its Difference From HTTP"},"content":{"rendered":"<p>IPv4 addresses are 32-bit numbers written in 4 8-bit components. In this studying (and in the issue set) we explore the client\/server design sample for communication with message passing. In this reading we look at client\/server communication over the network using the socket abstraction.<\/p>\n<div style='text-align:center'><iframe width='563' height='317' src='https:\/\/www.youtube.com\/embed\/ls-TEPfKgZY' frameborder='0' alt='what is a server socket and how does it work' allowfullscreen><\/iframe><\/div>\n<p>Here is a good video on using Nmap and also covers TCP\/IP connection procedures which is beneficial for understanding ports. It can be used with a graphical person interface of as a command line device. These articles show you how to use netstat on home windows and on linux. Windows and Linux techniques have a utility referred to as netstat which will provide you with an inventory of open ports in your laptop. Right Here is a very good video that explains ports and sockets very well <a href=\"https:\/\/alexhost.com\/id\/vps\/linux\/ubuntu\/cheap-ubuntu-vps\/\">alexhost.com<\/a> The TCP\/IP protocol helps two kinds of port- TCP Port and UDP Port.<\/p>\n<div style=\"text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jonahlowry.com\/wp-content\/uploads\/2026\/10\/websocket-and-its-difference-from-http-2_1.png\" width=\"355\" height=\"355\" alt=\"Websocket And Its Difference From HTTP\" title=\"Websocket And Its Difference From HTTP\" style=\"margin:5px;\" \/><\/div>\n<p>Now that we&#8217;ve our shopper and server related up with sockets, what do they cross forwards and backwards over those sockets? When a thread calls readLine, the call can be blocked and an exception is thrown(missing answer) When a thread calls readLine, all other threads block till readLine returns(missing answer)<\/p>\n<ul>\n<li>For Unix domain sockets (AF_UNIX), SOCK_STREAM is also a dependable byte stream, however it&#8217;s not TCP &#8211; it&#8217;s a native stream socket implemented by the kernel with out IP packets, TCP headers, ports, or routing.<\/li>\n<li>So for many websites, you may need to talk HTTP 1.1 if you would like to speak to them.<\/li>\n<li>The technology that makes this possible is called a community socket.<\/li>\n<li>After the Switching Protocols HTTP response, the opening handshake is complete, the HTTP protocol stops being used, and communication switches to a binary frame-based protocol.<\/li>\n<li>As An Alternative, create a new class that implements Runnable, or use an nameless Runnable that calls a technique where that shopper connection will be handled until it\u2019s closed.<\/li>\n<\/ul>\n<h3>Python Socket Programming: A Simple Example<\/h3>\n<p>Consumer written applications shouldn&#8217;t use these ports. These are allocated to server companies by the Internet Assigned Numbers Authority (IANA). A port number uses sixteen bits and so can due to this fact have a worth from 0 to decimal The diagram under shows a pc to laptop connection and identifies the IP addresses and ports.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IPv4 addresses are 32-bit numbers written in 4 8-bit components. In this studying (and in the issue set) we explore the client\/server design sample for communication with message passing. In this reading we look at client\/server communication over the network using the socket abstraction. Here is a good video on using Nmap and also covers [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-730","post","type-post","status-publish","format-standard","hentry","category-kubernetes"],"_links":{"self":[{"href":"http:\/\/jonahlowry.com\/index.php?rest_route=\/wp\/v2\/posts\/730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jonahlowry.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jonahlowry.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jonahlowry.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jonahlowry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=730"}],"version-history":[{"count":1,"href":"http:\/\/jonahlowry.com\/index.php?rest_route=\/wp\/v2\/posts\/730\/revisions"}],"predecessor-version":[{"id":731,"href":"http:\/\/jonahlowry.com\/index.php?rest_route=\/wp\/v2\/posts\/730\/revisions\/731"}],"wp:attachment":[{"href":"http:\/\/jonahlowry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jonahlowry.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=730"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jonahlowry.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}