locked
silverlight socket chatroom demo RRS feed

  • Question

  • Hi !

    I must develop a silverlight chatroom,I also using wcf in wpf winform , but nowadays silverlight2 only suport basicHttpbinding, please give me an easy demo ,silverlight2 chatroom using wcf or socket. thanks evry must!!!

    I'll waitting online...thanks again!

    Tuesday, April 15, 2008 12:04 AM

Answers

  • Hi:

      I found a chat room demo in Code Project:

    http://69.10.233.10/KB/IP/ChatAsynchTCPSockets.aspx

      You can refer to this article and the source code.

      Also you should note:

     The security model enforced by the System.Net.Sockets namespace in Silverlight 2 Beta 1 allows for a connection only back to the site or host of origin.

      One additional restriction on Silverlight 2 Beta 1 is that the port range that a network application is allowed to connect to must be within the range of 4502-4532. These are the only ports allowed for connection from Silverlight 2 Beta 1 applications. If the port range is not valid, the attempt will fail

      Please check out this article for more details:

    http://msdn2.microsoft.com/en-us/library/cc296248(vs.95).aspx

    Regards

    Thursday, April 17, 2008 10:24 PM

All replies

  • Hi:

      I can not find a demo but you can refer to this article. It demonstrates how to use socket:

    http://weblogs.asp.net/mschwarz/archive/2008/03/07/silverlight-2-and-sockets.aspx

    Regards

    Thursday, April 17, 2008 6:02 AM
  • Hi Allen !

      thanks for your help!

    it's pity . I can't write the chatroom application in silverlight,that page is a very gooood demo socket class,but  how can i  rework the socket class to a chatroom class!?
    Thursday, April 17, 2008 10:14 AM
  • Hi:

      I found a chat room demo in Code Project:

    http://69.10.233.10/KB/IP/ChatAsynchTCPSockets.aspx

      You can refer to this article and the source code.

      Also you should note:

     The security model enforced by the System.Net.Sockets namespace in Silverlight 2 Beta 1 allows for a connection only back to the site or host of origin.

      One additional restriction on Silverlight 2 Beta 1 is that the port range that a network application is allowed to connect to must be within the range of 4502-4532. These are the only ports allowed for connection from Silverlight 2 Beta 1 applications. If the port range is not valid, the attempt will fail

      Please check out this article for more details:

    http://msdn2.microsoft.com/en-us/library/cc296248(vs.95).aspx

    Regards

    Thursday, April 17, 2008 10:24 PM