{"id":92099,"date":"2020-08-22T19:42:21","date_gmt":"2020-08-22T17:42:21","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/dlya-chrome-razvivaetsya-api-dlya-pryamyh-tcp-i-udp-kommunikaczij"},"modified":"2020-08-22T19:42:21","modified_gmt":"2020-08-22T17:42:21","slug":"dlya-chrome-razvivaetsya-api-dlya-pryamyh-tcp-i-udp-kommunikaczij","status":"publish","type":"post","link":"https:\/\/prohoster.info\/pt\/blog\/news\/dlya-chrome-razvivaetsya-api-dlya-pryamyh-tcp-i-udp-kommunikaczij","title":{"rendered":"Est\u00e1 em desenvolvimento uma API para comunica\u00e7\u00f5es diretas TCP e UDP para o Chrome","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>A empresa Google <noindex><a rel=\"nofollow\" href=\"https:\/\/groups.google.com\/a\/chromium.org\/g\/blink-dev\/c\/ARtkaw4e9T4\/m\/npjeMssPCAAJ\">iniciou<\/a><\/noindex> a implementa\u00e7\u00e3o de uma nova API no Chrome <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/WICG\/raw-sockets\/blob\/master\/docs\/explainer.md\">Raw Sockets<\/a><\/noindex>, permitindo que aplica\u00e7\u00f5es web estabele\u00e7am conex\u00f5es de rede diretas usando os protocolos TCP e UDP. Em 2015, o cons\u00f3rcio W3C j\u00e1 havia feito uma tentativa de padronizar a API &#171;<noindex><a rel=\"nofollow\" href=\"https:\/\/www.w3.org\/TR\/tcp-udp-sockets\/\">TCP and UDP Socket<\/a><\/noindex>&#171;, mas os participantes do grupo de trabalho n\u00e3o chegaram a um consenso e o desenvolvimento dessa API foi interrompido.<\/p>\n<p>A necessidade de adicionar uma nova API se justifica pela possibilidade de intera\u00e7\u00e3o com dispositivos de rede que usam seus pr\u00f3prios protocolos, operando sobre TCP e UDP, e que n\u00e3o suportam intera\u00e7\u00f5es via HTTPS ou WebSockets. Destaca-se que a API Raw Sockets ir\u00e1 complementar os interfaces de programa\u00e7\u00e3o de baixo n\u00edvel j\u00e1 existentes no navegador, como WebUSB, WebMIDI e WebBluetooth, que permitem a intera\u00e7\u00e3o com dispositivos locais.<\/p>\n<p>Para evitar impactos negativos na seguran\u00e7a, a API Raw Sockets permitir\u00e1 acessos de rede apenas iniciados com o consentimento do usu\u00e1rio e restringidos a uma lista de hosts permitidos. O usu\u00e1rio dever\u00e1 confirmar explicitamente a primeira tentativa de conex\u00e3o com um novo host. Com uma flag especial, o usu\u00e1rio poder\u00e1 desativar a exibi\u00e7\u00e3o de novas solicita\u00e7\u00f5es de confirma\u00e7\u00e3o durante reconex\u00f5es ao mesmo host. Para prevenir ataques DDoS, a intensidade dos acessos atrav\u00e9s de Raw Sockets ser\u00e1 limitada, e o envio de solicita\u00e7\u00f5es ser\u00e1 poss\u00edvel apenas ap\u00f3s intera\u00e7\u00e3o do usu\u00e1rio com a p\u00e1gina. Pacotes UDP recebidos de hosts n\u00e3o aprovados pelo usu\u00e1rio ser\u00e3o ignorados e n\u00e3o chegar\u00e3o ao aplicativo web.<\/p>\n<p>  A implementa\u00e7\u00e3o inicial n\u00e3o prev\u00ea a cria\u00e7\u00e3o de sockets de escuta, mas no futuro n\u00e3o se descarta a possibilidade de fornecer chamadas para aceitar conex\u00f5es inseridas de localhost ou de uma lista de hosts conhecidos. Tamb\u00e9m \u00e9 mencionada a necessidade de prote\u00e7\u00e3o contra ataques &#171;<noindex><a rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=52169\">DNS rebinding<\/a><\/noindex>&#187; (o atacante pode, no n\u00edvel DNS, alterar o endere\u00e7o IP para um nome de dom\u00ednio aprovado pelo usu\u00e1rio e acessar outros hosts). O acesso a dom\u00ednios que resolvem para 127.0.0.0\/8 e redes intranet est\u00e1 planejado para ser bloqueado (acessos a localhost devem ser permitidos apenas com a inser\u00e7\u00e3o expl\u00edcita do endere\u00e7o IP na forma de confirma\u00e7\u00e3o).<\/p>\n<p>Entre os riscos que podem surgir com a implementa\u00e7\u00e3o de uma nova API, destaca-se a poss\u00edvel rejei\u00e7\u00e3o pelos fabricantes de outros navegadores, o que pode levar a problemas de compatibilidade. Os desenvolvedores dos motores Mozilla Gecko e WebKit ainda <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/mozilla\/standards-positions\/issues\/431\">n\u00e3o formularam<\/a><\/noindex> sua posi\u00e7\u00e3o sobre a poss\u00edvel implementa\u00e7\u00e3o da API Raw Sockets, mas a Mozilla j\u00e1 havia proposto anteriormente <noindex><a rel=\"nofollow\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Archive\/B2G_OS\/API\/TCPSocket\">uma API semelhante<\/a><\/noindex>. Se a API Raw Sockets for aprovada na primeira fase, ela ser\u00e1 ativada no Chrome OS, e somente depois ser\u00e1 oferecida aos usu\u00e1rios do Chrome em outras plataformas.<\/p>\n<p>Desenvolvedores web <noindex><a rel=\"nofollow\" href=\"https:\/\/discourse.wicg.io\/t\/filling-the-remaining-gap-between-websocket-webrtc-and-webtranspor\/4366\">se manifestaram positivamente<\/a><\/noindex> sobre a nova API e apresentaram muitas novas ideias sobre sua aplica\u00e7\u00e3o em \u00e1reas em que a API XMLHttpRequest, WebSocket e WebRTC n\u00e3o s\u00e3o suficientes (desde a cria\u00e7\u00e3o de clientes de navegador para SSH, RDP, IMAP, SMTP, IRC e protocolos de impress\u00e3o at\u00e9 o desenvolvimento de sistemas distribu\u00eddos P2P com DHT (Tabela de Hash Distribu\u00edda), suporte a IPFS e intera\u00e7\u00e3o com protocolos espec\u00edficos de dispositivos IoT).<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Fonte: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=53582\">opennet.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Google \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b\u0430 \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 Chrome \u043d\u043e\u0432\u043e\u0433\u043e API Raw Sockets, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0433\u043e web-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u044b\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 TCP \u0438 UDP. \u0412 2015 \u0433\u043e\u0434\u0443 \u043a\u043e\u043d\u0441\u043e\u0440\u0446\u0438\u0443\u043c\u043e\u043c W3C \u0443\u0436\u0435 \u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u0442\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0438 API &#171;TCP and UDP Socket&#171;, \u043d\u043e \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u043d\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u043b\u0438 \u043a\u043e\u043d\u0441\u0435\u043d\u0441\u0443\u0441\u0430 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0430\u043d\u043d\u043e\u0433\u043e API \u0431\u044b\u043b\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e API [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-92099","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Google \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b\u0430 \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 Chrome \u043d\u043e\u0432\u043e\u0433\u043e API\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/pt\/blog\/news\/dlya-chrome-razvivaetsya-api-dlya-pryamyh-tcp-i-udp-kommunikaczij\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"pt_PT\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0414\u043b\u044f Chrome \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f API \u0434\u043b\u044f \u043f\u0440\u044f\u043c\u044b\u0445 TCP \u0438 UDP \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0439 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Google \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b\u0430 \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 Chrome \u043d\u043e\u0432\u043e\u0433\u043e API\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/pt\/blog\/news\/dlya-chrome-razvivaetsya-api-dlya-pryamyh-tcp-i-udp-kommunikaczij\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-08-22T17:42:21+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-08-22T17:42:21+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Uma API para comunica\u00e7\u00f5es TCP e UDP diretas est\u00e1 sendo desenvolvida para o Chrome | ProHoster","description":"A Google come\u00e7ou a implementar uma nova API no Chrome","canonical_url":"https:\/\/prohoster.info\/pt\/blog\/news\/dlya-chrome-razvivaetsya-api-dlya-pryamyh-tcp-i-udp-kommunikaczij","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"pt_PT","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0414\u043b\u044f Chrome \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f API \u0434\u043b\u044f \u043f\u0440\u044f\u043c\u044b\u0445 TCP \u0438 UDP \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0439 | ProHoster","og:description":"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Google \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b\u0430 \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 Chrome \u043d\u043e\u0432\u043e\u0433\u043e API","og:url":"https:\/\/prohoster.info\/pt\/blog\/news\/dlya-chrome-razvivaetsya-api-dlya-pryamyh-tcp-i-udp-kommunikaczij","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-08-22T17:42:21+00:00","article:modified_time":"2020-08-22T17:42:21+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"92099","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 12:15:35","updated":"2022-09-28 13:53:48","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts\/92099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/comments?post=92099"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/posts\/92099\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/media?parent=92099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/categories?post=92099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/pt\/wp-json\/wp\/v2\/tags?post=92099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}