{"id":37972,"date":"2015-07-15T01:42:43","date_gmt":"2015-07-14T20:12:43","guid":{"rendered":"http:\/\/vskills.in\/certification\/blog\/?p=37972"},"modified":"2024-04-03T13:20:59","modified_gmt":"2024-04-03T07:50:59","slug":"transport-layer-part-four","status":"publish","type":"post","link":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/","title":{"rendered":"TRANSPORT LAYER (PART FOUR)"},"content":{"rendered":"<p style=\"text-align: center\"><a ref=\"magnificPopup\" href=\"http:\/\/vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-39409\" src=\"http:\/\/vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR-300x138.gif\" alt=\"TRANSPORT LAYER(PART FOUR)\" width=\"300\" height=\"138\" srcset=\"https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR-300x138.gif 300w, https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR-272x125.gif 272w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>What is Socket?<\/strong><\/p>\n<p>The communication structure used in socket programming is called as socket. A socket acts as an end point . Two processes can communicate if and only if they &nbsp;have a socket at each end.<\/p>\n<p><strong>Socket Structure:-<\/strong><\/p>\n<p>Various fields in socket structure are as under:-<\/p>\n<ul>\n<li>Family: This field is used for defining the protocol group such as IPv4 or IPv6 , unix domain protocol etc.<\/li>\n<li>Type: Thus field is used for defining the type socket such as stream socket, packet socket, or raw socket.<\/li>\n<li>Protocol: This field is usually set to zero for TCP and UDP.<\/li>\n<li>Local Socket Address: It is used for defining the local socket address . This address is a contribution of local IP address and the port address of the local application program.<\/li>\n<li>Remote Socket Address: It is used for defining the remote socket address which is a combination of remote IP address and the port address of the remote application program.<\/li>\n<\/ul>\n<p><strong>Types Of Socket:-&nbsp;<\/strong><\/p>\n<p>There are following three types of socket:-<\/p>\n<p><em>1. Stream Socket:-&nbsp;<\/em><\/p>\n<p>This is designed for the connection &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oriented protocol such as TCP. The &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TCP uses a pair of stream sockets for &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connecting one application program &nbsp; &nbsp; &nbsp; &nbsp;to the other across the internet.<\/p>\n<p><em>2. Datagram Socket:-<\/em><\/p>\n<p>This type of socket is designed for the &nbsp; &nbsp; &nbsp; &nbsp;connectionless protocol such as UDP. &nbsp; &nbsp; &nbsp; &nbsp;UDP uses a pair of datagram socket &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for sending a message from one &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;application program to another &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;across the internet.<\/p>\n<p><em>3. Raw Socket:-&nbsp;<\/em><\/p>\n<p>Raw sockets are designed for the &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;protocols like ICMP or OSPF, because &nbsp; &nbsp; &nbsp; &nbsp;these protocols do not use either &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;stream packets or datagram packets.<\/p>\n<p><strong>What is Connectionless Iterative Server?<\/strong><\/p>\n<p>The server that uses UDP is usually connectionless iterativ . A server gets the request received in a packet from UDP , it processes the request and gives the response to UDP which is send to the client. The server does not pay attention to other packet . Thus, other packets are stored in a queue waiting for the service.<\/p>\n<p>The functions of the server are as follows:-<\/p>\n<ul>\n<li>Create a socket: The server asks the operating system to create a socket.<\/li>\n<li>Bind: The server asks the operating system to enter information in the socket related to the server . This is called as binding the server socket.<\/li>\n<li>The server repeats the following steps for infinite number of times:<\/li>\n<\/ul>\n<ol>\n<li>Receive a request.<\/li>\n<li>The request is processed by the server.<\/li>\n<li>The response is sent to the client.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/www.vskills.in\/certification\/information-technology\">Click here for government certification in Information Technology<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Socket? The communication structure used in socket programming is called as socket. A socket acts as an end point . Two processes can communicate if and only if they &nbsp;have a socket at each end. Socket Structure:- Various fields in socket structure are as under:- Family: This field is used for defining the&#8230;<\/p>\n","protected":false},"author":876,"featured_media":39409,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[920],"tags":[5506,5155],"class_list":["post-37972","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-information-technology","tag-connectionless-iterative-server","tag-sockets"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>TRANSPORT LAYER (PART FOUR) - Vskills Blog<\/title>\n<meta name=\"description\" content=\"Socket interface defines a set of system calls or procedure. Apply for a vskills certification in Accounting, Banking and Finance now. Hurry up!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TRANSPORT LAYER (PART FOUR) - Vskills Blog\" \/>\n<meta property=\"og:description\" content=\"Socket interface defines a set of system calls or procedure. Apply for a vskills certification in Accounting, Banking and Finance now. Hurry up!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/\" \/>\n<meta property=\"og:site_name\" content=\"Vskills Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\" \/>\n<meta property=\"article:published_time\" content=\"2015-07-14T20:12:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-03T07:50:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"763\" \/>\n\t<meta property=\"og:image:height\" content=\"352\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"Supreet Kaur\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Supreet Kaur\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/\",\"name\":\"TRANSPORT LAYER (PART FOUR) - Vskills Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR.gif\",\"datePublished\":\"2015-07-14T20:12:43+00:00\",\"dateModified\":\"2024-04-03T07:50:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/#\/schema\/person\/ce72d525009cad3f512c05bc100947e4\"},\"description\":\"Socket interface defines a set of system calls or procedure. Apply for a vskills certification in Accounting, Banking and Finance now. Hurry up!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#primaryimage\",\"url\":\"https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR.gif\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR.gif\",\"width\":763,\"height\":352},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TRANSPORT LAYER (PART FOUR)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/blog\/\",\"name\":\"Vskills Blog\",\"description\":\"Vskills - A Initiative in Assessment to Enhance Employability\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/#\/schema\/person\/ce72d525009cad3f512c05bc100947e4\",\"name\":\"Supreet Kaur\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8856692da44a1bc2510cdcd705985263496def1f273dcf60dee4b98a53c2e7c3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8856692da44a1bc2510cdcd705985263496def1f273dcf60dee4b98a53c2e7c3?s=96&d=mm&r=g\",\"caption\":\"Supreet Kaur\"},\"url\":\"https:\/\/www.vskills.in\/certification\/blog\/author\/supreet-kaur\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TRANSPORT LAYER (PART FOUR) - Vskills Blog","description":"Socket interface defines a set of system calls or procedure. Apply for a vskills certification in Accounting, Banking and Finance now. Hurry up!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/","og_locale":"en_US","og_type":"article","og_title":"TRANSPORT LAYER (PART FOUR) - Vskills Blog","og_description":"Socket interface defines a set of system calls or procedure. Apply for a vskills certification in Accounting, Banking and Finance now. Hurry up!","og_url":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/","og_site_name":"Vskills Blog","article_publisher":"https:\/\/www.facebook.com\/vskills.in","article_published_time":"2015-07-14T20:12:43+00:00","article_modified_time":"2024-04-03T07:50:59+00:00","og_image":[{"width":763,"height":352,"url":"https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR.gif","type":"image\/gif"}],"author":"Supreet Kaur","twitter_misc":{"Written by":"Supreet Kaur","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/","url":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/","name":"TRANSPORT LAYER (PART FOUR) - Vskills Blog","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR.gif","datePublished":"2015-07-14T20:12:43+00:00","dateModified":"2024-04-03T07:50:59+00:00","author":{"@id":"https:\/\/www.vskills.in\/certification\/blog\/#\/schema\/person\/ce72d525009cad3f512c05bc100947e4"},"description":"Socket interface defines a set of system calls or procedure. Apply for a vskills certification in Accounting, Banking and Finance now. Hurry up!","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#primaryimage","url":"https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR.gif","contentUrl":"https:\/\/www.vskills.in\/certification\/blog\/wp-content\/uploads\/2015\/07\/TRANSPORT-LAYERPART-FOUR.gif","width":763,"height":352},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/blog\/transport-layer-part-four\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/blog\/"},{"@type":"ListItem","position":2,"name":"TRANSPORT LAYER (PART FOUR)"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/blog\/#website","url":"https:\/\/www.vskills.in\/certification\/blog\/","name":"Vskills Blog","description":"Vskills - A Initiative in Assessment to Enhance Employability","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.vskills.in\/certification\/blog\/#\/schema\/person\/ce72d525009cad3f512c05bc100947e4","name":"Supreet Kaur","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8856692da44a1bc2510cdcd705985263496def1f273dcf60dee4b98a53c2e7c3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8856692da44a1bc2510cdcd705985263496def1f273dcf60dee4b98a53c2e7c3?s=96&d=mm&r=g","caption":"Supreet Kaur"},"url":"https:\/\/www.vskills.in\/certification\/blog\/author\/supreet-kaur\/"}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/posts\/37972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/users\/876"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/comments?post=37972"}],"version-history":[{"count":7,"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/posts\/37972\/revisions"}],"predecessor-version":[{"id":74015,"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/posts\/37972\/revisions\/74015"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/media\/39409"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/media?parent=37972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/categories?post=37972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/blog\/wp-json\/wp\/v2\/tags?post=37972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}