{"id":375,"date":"2013-07-30T02:18:34","date_gmt":"2013-07-30T02:18:34","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=375"},"modified":"2013-07-30T02:18:34","modified_gmt":"2013-07-30T02:18:34","slug":"silverlight-%ec%97%90%ec%84%9c-socket-%ed%86%b5%ec%8b%a0%ec%8b%9c-%ec%a3%bc%ec%9d%98%ec%82%ac%ed%95%ad","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=375","title":{"rendered":"Silverlight \uc5d0\uc11c Socket \ud1b5\uc2e0\uc2dc \uc8fc\uc758\uc0ac\ud56d"},"content":{"rendered":"<p>\n\t&#8211; \uc2e4\ubc84\ub77c\uc774\ud2b8\uc5d0\uc11c \uc0ac\uc6a9\uac00\ub2a5\ud55c TCP \uc18c\ucf13\uc758 \ud3ec\ud2b8 \ubc94\uc704\ub3c4 4502 &#8211; 4534\uc73c\ub85c \ud55c\uc815\ub418\uc5b4 \uc788\uc74c.\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&#8211; \ud574\ub2f9\ud3ec\ud2b8\uc758 \uad8c\ud55c\uc744 \ubd80\uc5ec\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc6f9\uc5d0\uc11c clientaccesspolicy.xml \uc0ac\uc6a9\ud560\ub54c\uc640 \uc720\uc0ac\ud558\uac8c \uc18c\ucf13\uc0ac\uc6a9\uc2dc\uc5d0\ub3c4 Policy\ud30c\uc77c\uc774 \ud544\uc694.\n<\/p>\n<p>\n\t&nbsp;&nbsp; \uc989, clientaccesspolicy.xml \uc744 \ub0b4\ub824\ubcf4\ub0b4\uc8fc\ub294 Policy\uc11c\ubc84(<span style=\"color: rgb(255, 0, 0);\">\ud3ec\ud2b8\ub294 \ubc18\ub4dc\uc2dc 943<\/span>)\ub97c \ub9cc\ub4e4\uc5b4\uc8fc\uc5b4\uc57c \ud568.\n<\/p>\n<p>\n\t&nbsp;&nbsp; \ud3f4\ub9ac\uc2dc \uc11c\ubc84\uc758 \uad6c\ucd95\uc740 \uad6c\uae00\uc5d0\uc11c Silverlight Policy Server\ub85c \ucc3e\uc544\ubcf4\uba74 \ub9ce\uc774 \ub098\uc624\ubbc0\ub85c \ucc38\uace0 \ubc14\ub78c.\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&#8211; Policy\uc11c\ubc84\ub97c \ub9cc\ub4e4\uae30 \uc2eb\ub2e4\uba74 \uad6c\ub3d9\uc11c\ubc84\uc758 \uae30\ubcf8 \uc6f9\ud3ec\ud2b8\uc778 80\ud3ec\ud2b8\uc5d0 clientaccesspolicy.xml\uc744 \ub123\uc5b4\uc8fc\uba74 \ub428\n<\/p>\n<p>\n\t&nbsp; \uadf8\ub9ac\uace0 Connect\uc2dc\uc5d0&nbsp;ConnectAsync\uc804\uc5d0 SocketClientAccessPolicyProtocol\uc758 \uac12\uc5d0 Http\ub97c \ub123\uc5b4\uc8fc\uba74 \ub428.\n<\/p>\n<p>\n\t&nbsp;&nbsp; var args = new SocketAsyncEventArgs();<br \/>\n\t&nbsp;&nbsp;&nbsp;args.SocketClientAccessPolicyProtocol = <span style=\"color: rgb(255, 0, 0);\">SocketClientAccessPolicyProtocol.Http;<\/span>\n<\/p>\n<p>\n\t&nbsp;&nbsp; &#8230;.<br \/>\n\t&nbsp; &nbsp;this.Socket.ConnectAsync(args);\n<\/p>\n<p>\n\t&nbsp;&nbsp; <span style=\"color: rgb(255, 0, 0);\"><strong>(<img loading=\"lazy\" decoding=\"async\" alt=\"enlightened\" height=\"20\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/plugins\/ckeditor-for-wordpress\/ckeditor\/plugins\/smiley\/images\/lightbulb.gif\" title=\"enlightened\" width=\"20\" \/>&nbsp; \ud14c\uc2a4\ud2b8\uacb0\uacfc \uc720\uc0ac\ud55c 8080\ud3ec\ud2b8\ub294 \uc548\ub418\ubbc0\ub85c, \ubc18\ub4dc\uc2dc 80\ud3ec\ud2b8\uc5d0 \ub123\uc5b4\uc57c \ud568)<\/strong><\/span>\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&#8211;&nbsp; clientaccesspolicy.xml \uc758 \ub0b4\uc6a9\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<pre>\r\n<?xml version=\"1.0\" encoding =\"utf-8\"?>\r\n<access-policy>\r\n  <cross-domain-access>\r\n    <policy>\r\n      <allow-from>\r\n        <domain uri=\"*\">\r\n      <\/domain>\r\n      <grant-to>\r\n        <socket-resource port=\"4502-4534\" protocol=\"tcp\">\r\n      <\/socket-resource>\r\n    <\/grant-to>\r\n  <\/allow-from>\r\n<\/policy>\r\n<\/cross-domain-access><\/access-policy><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8211; \uc2e4\ubc84\ub77c\uc774\ud2b8\uc5d0\uc11c \uc0ac\uc6a9\uac00\ub2a5\ud55c TCP \uc18c\ucf13\uc758 \ud3ec\ud2b8 \ubc94\uc704\ub3c4 4502 &#8211; 4534\uc73c\ub85c \ud55c\uc815\ub418\uc5b4 \uc788\uc74c. &nbsp; &#8211; \ud574\ub2f9\ud3ec\ud2b8\uc758 \uad8c\ud55c\uc744 \ubd80\uc5ec\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc6f9\uc5d0\uc11c clientaccesspolicy.xml \uc0ac\uc6a9\ud560\ub54c\uc640 \uc720\uc0ac\ud558\uac8c \uc18c\ucf13\uc0ac\uc6a9\uc2dc\uc5d0\ub3c4 Policy\ud30c\uc77c\uc774 \ud544\uc694. &nbsp;&nbsp; \uc989, clientaccesspolicy.xml \uc744 \ub0b4\ub824\ubcf4\ub0b4\uc8fc\ub294 Policy\uc11c\ubc84(\ud3ec\ud2b8\ub294 \ubc18\ub4dc\uc2dc 943)\ub97c \ub9cc\ub4e4\uc5b4\uc8fc\uc5b4\uc57c \ud568. &nbsp;&nbsp; \ud3f4\ub9ac\uc2dc \uc11c\ubc84\uc758 \uad6c\ucd95\uc740 \uad6c\uae00\uc5d0\uc11c Silverlight Policy Server\ub85c \ucc3e\uc544\ubcf4\uba74 \ub9ce\uc774 \ub098\uc624\ubbc0\ub85c \ucc38\uace0 \ubc14\ub78c. &nbsp; &#8211; Policy\uc11c\ubc84\ub97c \ub9cc\ub4e4\uae30 \uc2eb\ub2e4\uba74 \uad6c\ub3d9\uc11c\ubc84\uc758 \uae30\ubcf8 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[8,18,4],"tags":[],"class_list":["post-375","post","type-post","status-publish","format-standard","hentry","category-dotnet","category-silverlight","category-4"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=375"}],"version-history":[{"count":4,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/375\/revisions"}],"predecessor-version":[{"id":379,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/375\/revisions\/379"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=375"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}