Silverlight2 access policy server

Silverlight needs access policy server to use socket. Access policy server should bind 943 port on same host address. Then silverlight sends following request:

<policy-file-request/>

Access policy server receives policy file request and sends access policy file 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" protocol="tcp" />
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>

This policy means silverlight allowed to connect to tcp 4502 port of any host.

I attached sample decoder, encoder, codec factory source files for MINA 2.0.0-M6.

SilverlightPolicyCodecFactory.java
SilverlightPolicyHandler.java
SilverlightPolicyProtocolDecoder.java
SilverlightPolicyProtocolEncoder.java

Use at your own risk.
by xeraph | 2009/06/11 22:09 | 학술 | 트랙백 | 덧글(1)
트랙백 주소 : http://xeraph.com/tb/4977494
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Commented by TomCat at 2009/06/12 11:11
양 사장 오늘 연락주어~

:         :

:

비공개 덧글