views:

114

answers:

3

Hey guys

I am looking for a good solid introduction book to the fundementals of network programming in C#. For example is have looked at this one

http://www.amazon.com/C-Network-Programming-Richard-Blum/dp/0782141765/ref=pd_sim_b_5

but it is quite old now. Anyone used one recently, i would greatly appriciate it

thanks dan

A: 

Do you want to program sockets, bots, make ASP websites with C# CodeBehind ?

The book you propose was published in 2002, but still, the language is the same and the basic principles dosen't change so fast. There are good comments about this book and it's not expensive so I would say it's probably a good choice...

ya, I am looking to get a good understanding of sockets, tcp/ip, udp, network threading etc I will definately give the book a read but was hoping the were more resources in this area. I have tried on the net but still cant find good resources. thanks for your input, and i will take your advice
Dan
A: 

What Is Windows Communication Foundation

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application. An endpoint can be a client of a service that requests data from a service endpoint. The messages can be as simple as a single character or word sent as XML, or as complex as a stream of binary data. A few sample scenarios include:

  • A secure service to process business transactions.

  • A service that supplies current data to others, such as a traffic report or other monitoring service.

  • A chat service that allows two people to communicate or exchange data in real time.

  • A dashboard application that polls one or more services for data and presents it in a logical presentation.

  • Exposing a workflow implemented using Windows Workflow Foundation as a WCF service.

  • A Silverlight application to poll a service for the latest data feeds.

http://msdn.microsoft.com/en-us/netframework/dd939788.aspx

http://msdn.microsoft.com/en-us/library/ms731082%28v=VS.100%29.aspx

zxcvbnm
And how is this an answer to the question?
Ronald Wildenberg
@rwwilden i've never used wcf, but i thought you could do network programming in c# with it? did i say something stupid?
zxcvbnm
@zxcvbnm WCF is more about services than about networking. A lot of effort is put into abstracting away the entire networking layer for you in WCF. For example, you could have a service exposed over http but you could expose the exact same service over tcp. So there's never any need to go into the details of the underlying networking stack. So what I meant by my comment is that you can not learn networking by looking at WCF. Sorry if I sounded a bit harsh.
Ronald Wildenberg
@rwwilden: But you could argue that the standard for "network programming in C#" is WCF, unless there is a specific need to mess with the network stack. .NET abstracts out Windows/Win32 but we still use it...
Nelson
A: 

I've had some good luck with the book TCP/IP Sockets in C#: Practical Guide for Programmers.

It's a very basic primer to the C# socket objects and includes an introduction to the underlying TCP/IP communication. It's also pretty old (2004), but it's still applicable since the socket classes are mostly the same.

I have not read Blum's book, but my guess is this book is more basic than that one.

Richard Morgan