Need some direction

Hi,

I'm building a card games windows forms app that will allow users to get together and play over the Internet.
I would to like to include chat too. I prefer a smart client with auto update and SQL Server as back-end.

The app will be downloadable from a web site and users must use the Internet to communicate with the server without need for extra ports to be opened.
Users will create rooms and play in teams up to 4-6 people.

I need some direction on what technologies to use. Should I use sockets web services
Some samples will be great.

I'm an expert programmer in desktop and web apps, but I never did network programming.
How difficult is to do such an app

I'll appreciate any help.

Thanks in advanced,

ubarcoder



Answer this question

Need some direction

  • Mike4676

    Thanks for the reply.

    I know about web services very well and I know they are stateless.
    How the server will inform the clients when one player plays a hand or sends a message

  • Adrian_Moore

    Yes thats a great question.
    If you need asynchornous events like this a persistent socket connection is your best bet.
    In this case you can post a read on the socket and wait for it to respond while you can continue to send data as per the user interaction

  • Jake Pratt

    Thanks again.

    Any good resources on sockets

  • Jack Knife

    Well there are tons of samples out there.
    Look at the other questions I answered today and I included a couple of
    articles you might be interested in

  • tlunde

    Well first you need to open connections to the socket on the server.
    You could use sockets or use Web Services. If you have never done network programming I would suggest that you use web services. There are tons of samples on MSDN, codeproject and on the web.
    Pick up a book on web services and you will have good direction on how to do this

  • Need some direction