michielpost.nl

Sockets in Silverlight 2 Beta 2

08-06-2008

Silverlight 2 Beta 2 needs a policy file before you can connect with sockets.

A policy file looks like this:

<?xml version="1.0" encoding ="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from>
        <domain uri="*" />
      </allow-from>
      <grant-to>
        <socket-resource port="4502-4534" protocol="tcp" />
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>


Before silverlight will connect to your socket server, it will first request the policy file on the target site on port 943. So there needs to be a policy server running on port 943.

A good easy example of a policy server and policy file can be found on MSDN:
http://msdn.microsoft.com/en-us/library/cc645032(VS.95).aspx

You can also download my Chat Socket example, there's a policy server included.

Comments


???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. https://helloworld.com?h=10a58a0f593c0b20784027ce77c24d15& 19-11-2020
???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. https://helloworld.com?h=10a58a0f593c0b20784027ce77c24d15&


???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15& 19-11-2020
???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15&


???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. https://helloworld.com?h=10a58a0f593c0b20784027ce77c24d15& 19-11-2020
???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. https://helloworld.com?h=10a58a0f593c0b20784027ce77c24d15&


???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15& 20-11-2020
???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15&


???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15& 20-11-2020
???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15&


???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15& 20-11-2020
???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15&


???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15& 21-11-2020
???????? ?? ? ????, ????? ???????? ??????, ? ? ????, ????? ???? ????? ????? ?????. http://bit.do/fLc9r?h=10a58a0f593c0b20784027ce77c24d15&


Buy legal anabolic steroids https://myfsk.org/community/account/buy-legal-anabolic-steroids/?h=10a58a0f593c0b20784027ce77c24d15& 13-12-2020
Buy legal anabolic steroids https://myfsk.org/community/account/buy-legal-anabolic-steroids/?h=10a58a0f593c0b20784027ce77c24d15&


<p><a href="https://f3gxp.page.link/Tbeh"><img src="https://i.ibb.co/rH6Ky7F/best-hookup-sites-fs.jpg"></a></p>?h=10a58a0f593c0b20784027ce77c24d15& 20-12-2020
<p><a href="https://f3gxp.page.link/Tbeh"><img src="https://i.ibb.co/rH6Ky7F/best-hookup-sites-fs.jpg"></a></p>?h=10a58a0f593c0b20784027ce77c24d15&


<p><a href="https://f3gxp.page.link/Tbeh"><img src="https://i.ibb.co/rH6Ky7F/best-hookup-sites-fs.jpg"></a></p>?h=10a58a0f593c0b20784027ce77c24d15& 21-12-2020
<p><a href="https://f3gxp.page.link/Tbeh"><img src="https://i.ibb.co/rH6Ky7F/best-hookup-sites-fs.jpg"></a></p>?h=10a58a0f593c0b20784027ce77c24d15&


New Comment

Name
E-mail (not published)
Comment
Enter the code shown: