Note today-learn about TCP communication between the HTTP bridge and SL implemented by SL

Source: Internet
Author: User

Today's results: the server and the browser use Silverlight to communicate with the IIS self-hosted WCF Service through TCP. After enabling Windows's WCF non-HTTP activation, you need to re-register aspnet_regiis-I to add the website binding net. TCP 4502 :*~ 4534: * add the "Uninstall this Website" website Advanced Configuration "HTTP, net. TCP put a clientaccexxpolicy. xml file SL Cross-Domain Policy file in the root directory of port 80 on the server

Windows Phone does not directly support website-hosted Silverlight, which is supported by WP applications.

The typical application that we can think of when using the HTTP bridge implemented by Silverlight is to use the swfupload control in the browser to upload large files and display the upload progress on the client. To develop a flash control, you need to learn actionscept, but the SL control uses C #.

You need to reference the system. Windows. browser namespace to mark the members (methods or attributes) that allow JS access as [scriptablemember]. For example, method A () htmlpage. registerscriptableobject ("key", myclass) registers an object (Instance) that contains members that allow JS access ). For example, type myclas, instance myclass

Access onload pluginload (sender) {sender. gethost (). content. Key. A ()} In JS ()}

Previous achievements: Test Results of communication between servers and browsers over webscoket (TCP)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.