Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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.
Improve this question
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.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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.
Improve this question
Can anyone indicate a good 3270 emulator (which can login, scrape screen, find text, send keys etc. in background) for .NET (win and web). Something very similar to http://www.zephyrcorp.com/legacy-integration/index.htm (apparently zephyr costs like $5k per year, which is quite a lot, for one PC).
I also tried http://open3270.codeplex.com/SourceControl/list/changesets but it's way old and buggy.
Attachmate Reflection is really good, it meets all the requirements you mentioned and it has a great .NET API you can use to easily automate it from your .NET code. They don't list prices on their website but I think it is under $300...
For Desktop: I liked the idea of using a stable and well known client and remote control this instance. Therefore I ended up using x3270 (http://x3270.bgp.nu/) as the full featured, mature client in combination with X3270.Rest (https://www.nuget.org/packages/X3270.Rest/) that let's you remote control it from within a .NET application via the exposed REST interface (http://x3270.bgp.nu/rest.html). Reimplementing a complete new .NET client was not really an option because of all the alternatives out there. All those pitfalls on the road that lead to an reinvented wheel... But with an appropriate interface like the one mentioned it was quite easy to automate tasks without using DDE/HLLAPI.
If running in the background means without visible window one could start the x3270 client from .NET via Process.Start with suitable arguments to avoid a window beeing created.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 8 years ago.
Improve this question
I'm porting a small server from Scala to C# (on Mono) and need to get a very simple REST interface going. Am trying to figure out the easiest (but robust) way to do this.
For reasons I wont go into, NOT using webservers like Apache, Nginx etc would be preferred.
Yes, I could manually code up something listening to sockets, parse HTTP request coming in, handle threading etc... but hoping there are libraries or frameworks that already handle this.
Any suggestions?
I've built a webserver that should work in mono. At least version 1.1 should.
You can find it here: http://webserver.codeplex.com.
It's not a standalone server, you include it in your project and create a webserver in you code. It support all HTTP verbs and got a small MVC framework which makes it easy to create REST services.
Take a look at manos. It's a standalone high performance web application framework which, I think, can be used as a REST based server.
You can use MonoRail or Mono WCF.
I asked a question about C# options similar to Ruby's Sinatra see Is there a .NET framework similar to Ruby's Sinatra?
Check out Nancy - it's a lightweight web framework for .net
http://nancyfx.org/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 7 years ago.
Improve this question
I'm a .Net C# Developer. I want to develop the media programming about video/audio codec, capture media from source, etc. I'm going to use the DirectShow Lib, but I read it on MSDN, and I'm very confused, because I'm a beginner.
Do you have the best tutorials or some article that can make beginner understand to program in the DirectShow architecture? If so, please share them.
You will find these useful:
http://www.codeproject.com/KB/directx/PrgmngDirectShowappsCS.aspx
http://www.codeproject.com/KB/directx/directshowmediaplayer.aspx
http://www.codeproject.com/KB/directx/directshownet.aspx
http://www.codeproject.com/KB/directx/MPEG2_Capture_Device.aspx
Oh and these too:
http://www.codeproject.com/KB/audio-video/dshowencoder.aspx
http://www.codeproject.com/KB/directx/rendering.aspx
http://www.codeproject.com/KB/windows/samplegrabberfilter-wm6.aspx
http://www.codeproject.com/KB/audio-video/Tanvon_DirectShowFilters.aspx
Hope that helps.
Regards
Richard
Dude, IMO It's better develop direct show in C++, you just should learn how to create COM object and uninitialize it, C++ is faster, and current available library of direct show all are in c++, cases which are in code project in c# are good for learning basic of direct show, but they aren't practical solutions. they are COM wrapper to use them in C#, the speed is main concern and their speed in real time video analyzing is not good. the MSDN is best reference for working with directshow and there are good samples in SDK
Just read DirectShow SDK in MSDN from beginning. Then install GraphEditPlus, try building some graphs and then from File menu you can generate C# code which builds these graphs using DirectShowLib for .NET and see how it does it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 7 years ago.
Improve this question
I decided to start studying code from other developers to improve my coding skills.
I'm looking for a open-source software that uses MVC pattern, and also most design patterns possible.
Could you recommend some open-source software written in C# or VB.NET that uses as many design patters as possible or some code that worth studying?
I would recommend some projects like NServiceBus, which make extensive use of polymorphism (not to mention the NServiceBus API is one of the best APIs I've had the pleasure of using). Also consider something like StructureMap, which uses a model-based configuration API (I actually use Ninject as my IoC of choice, and it could prove to have some interesting code as well). It's hard for me to point out whether or not these projects use specific design patterns, and how many it may use, but I do know that they use some modern APIs and modern approaches to object oriented design.
I would say, though, that your best bet is going to be to find an open source project that you find interesting, or that you use regularly, and crack it open and see what makes it tick. If you are familiar with the details of using the code (whatever it may be), then you will probably gain more insight be looking at the code because you know what it is doing.
I always recommend .NET Domain-Driven Design with C#: Problem-Design-Solution sample code - SmartCA project. It is extremely elegantly laid out and I find myself going back to it whenever I have doubts about my architecture.
You should also download and check out ASP .NET MVC source code. It's got good examples of unit testing and mocking (which is something you will find yourself wanting to use).
I'd recommend checking out the Northwind Starter Kit (http://nsk.codeplex.com/) - it covers off on many design patterns and their application in the .Net framework, including SOA and MVC/MVP/PM concepts. It also includes examples of several other free-to-use libraries, such as Microsoft Entity Framework and NHibernate.
I'm personally particularly pleased with the way they show the same backend can be used with both WPF and ASP.Net.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 4 years ago.
Improve this question
There are some WebDAV clients available for Delphi (for example included in Indy 10). Is there also a simple WebDAV server solution written with Delphi?
If there is none yet, maybe you know an implementation in a different language (C#, Java) which you can recommend as a starting point for a WebDAV server implementation? (It does not have to be a full-featured solution, a rather simple skeleton could be even more helpful.)
Start your search on Google for Delphi WebDAV or Delphi WebDAV Component
That will give you some starting points: there indeed are components that can help you out.
--jeroen
As far as I know, WebDav extends HTTP functionality. You should try extending some HTTP server code. I believe synapse would be good point to start, as the code is very clear (also I personally don't like Indy ;) )
You might look at Jackrabbit, it has a WebDAV interface available (Java solution).
May be Go implementation can be taken as a start point.
Related links:
https://github.com/golang/net/tree/master/webdav
https://github.com/golang/go/issues?q=webdav
Webdav Server in Go