locked
What is the best & easiest way to achieve a Real Time Communication? RRS feed

  • Question

  • I want to achieve is like 2 computers communicating to each other.

    What I want to achieve first is the first level, by first level I mean that both computers are communicating to each other in the same Network.

    The application I want to do is similar to chess, then after the first player move the second player will be next.
    Both players are in different computers but they communicate to each other via Network.

    The second level I want to achieve is via Internet, this means I can play with other people as long as they are connected thru the internet

    I'm sorry I have no background on programming networks so I really don't have an idea or clue on what to do with this.
    Monday, October 14, 2013 4:49 AM

Answers

  • "The structure of the program is only compatible to ARM Architecture which is tablets, unfortunately I don't have money for that kind of device."

    That's not true at all.  A Store app has the same structure across all architectures. 

    Your app can easily do real-time communication via any of the sockets shown here: http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.sockets.aspx

    I don't think you actually want RTC (which is an audio/visual term), you just want socket communication.  Read the remarks section of this doc:
    http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.sockets.streamsocketlistener.aspx

    I think this will give you what you are after.


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by Anne Jing Tuesday, October 29, 2013 9:41 AM
    Thursday, October 17, 2013 7:41 PM
    Moderator

All replies

  • There's a Real Time Communication sample here:
    http://code.msdn.microsoft.com/windowsapps/Simple-Communication-Sample-eac73290


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Proposed as answer by Dave SmitsMVP Monday, October 14, 2013 7:23 PM
    Monday, October 14, 2013 7:17 PM
    Moderator
  • Yeah I already saw the sample, I tried doing Windows 8 but no avail. The structure of the program is only compatible to ARM Architecture which is tablets, unfortunately I don't have money for that kind of device.

    Also another problem is that it uses Video Api, what if I only want to share a .sql or .xml, the scope is quite limited yet broad because it uses another project which i presume is for the network.

    if you are familiar with the project, can you give me a breakdown of it or just the essentials. The simplest form of Real Time Communication
    Tuesday, October 15, 2013 7:50 AM
  • "The structure of the program is only compatible to ARM Architecture which is tablets, unfortunately I don't have money for that kind of device."

    That's not true at all.  A Store app has the same structure across all architectures. 

    Your app can easily do real-time communication via any of the sockets shown here: http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.sockets.aspx

    I don't think you actually want RTC (which is an audio/visual term), you just want socket communication.  Read the remarks section of this doc:
    http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.sockets.streamsocketlistener.aspx

    I think this will give you what you are after.


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by Anne Jing Tuesday, October 29, 2013 9:41 AM
    Thursday, October 17, 2013 7:41 PM
    Moderator