English 中文(简体)
C# Networking API s [closed]
原标题:

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Lately I ve been looking for a good networking API i could possibly use and/or reference some of the code within, but i have mere luck searching for some on Google/Bing. Hopefully somebody here has seen and/or used a helpful networking API for C#.

Thanks in advance.

最佳回答

I highly suggest you look into the Windows Communication Foundation. It comes with any version of .NET 3.0 or greater, so if you re using VS 2008, you ve got all you need.

It abstracts a heck of a lot of the details for networking, providing you with a very simple programming API. Even protocol details are abstracted away, and there are a ton of protocols to chose from already built in.

Hands down the best way to communicate across a network.

问题回答

Check out the System.Net and System.Net.Sockets namespaces in the .NET framework libraries. Eat your heart out.

Though I may have misunderstood your meaning of networking API .

Networking is a very, very, very broad term. You might have more luck if you put some limits in your query, such as "I am looking for sample code for socket programming under c#". Still broad, but much more answerable.

C# has a lot of networking functionality built into the .NET framework., mostly in the System.Net namespace. I have found very few things that require using an external library or the windows networking api. You might check out the System.Net namespace and see if it has what you needs, otherwise maybe clarify what you are looking for.

If you re looking for something outside of what s already built-in to the framework, I ve heard good things about Lidgren.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签