2 Replies - 19823 Views - Last Post: 17 April 2012 - 01:10 PM

#1 darthian  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 06-July 11

WCF or Sockets

Posted 26 March 2012 - 03:42 AM

I have plans to start working on a text/video/and voice chat as a hobby project. I have become addicted to working with the .NET platform and just want to mess around with a VoIP project. The project will be using WPF to create a custom interface, however I'm not sure if I should use WCF. It seems like WCF wouldn't be suitable to handle voice. Should I stick with sockets?
Is This A Good Question/Topic? 0
  • +

Replies To: WCF or Sockets

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1533
  • View blog
  • Posts: 5,972
  • Joined: 21-March 08

Re: WCF or Sockets

Posted 26 March 2012 - 05:48 AM

WCF is great for a lot of things, but for voice, I would still go with Sockets.
Was This Post Helpful? 0
  • +
  • -

#3 lordofduct  Icon User is offline

  • I'm a cheeseburger
  • member icon

Reputation: 2668
  • View blog
  • Posts: 4,786
  • Joined: 24-September 10

Re: WCF or Sockets

Posted 17 April 2012 - 01:10 PM

Part of me wants to say Sockets...

But I'm loving WCF since I started using it about a year and a half ago. I personally haven't done any streaming of audio or video over it, but MS has it built directly into it, and it's relatively simple to set up (especially if you're already used to setting up a WCF service...). It does put some restriction on the Binding contracts you can use.

Those are:

Here, read this:


Since it's a "hobby" project, I'd ask what you plan on getting out of the project? If you're using it to learn Sockets, go for it! But if it were me, I'd do it with WCF just for the fun of it, see how it does.

Of course you can wrap said WCF binding with some version of the Facade Pattern and than implement both a WCF communication method and a Socket based communication method. And then you could compare the two in your system...
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1