When to choose socket programming over WCF? [closed] - c#

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are some actual, realistic situations that one would need to use raw socket programming over WCF? I know performance is one, but are there any others?

There may be situations where you are talking to a third party system that requires communication via sockets (we have to with one).

When the software at the other end of the connection knows nothing about .NET or WCF - the WCF netTcpBinding assumes both ends are implemented using WCF.

say you need to send receive commands from a external device which does not support WCF communication.
Say you would want to pass some commands to a device connected to your serial port.

Related

is P2P really serverless? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am following this guide here. P2P
One of the advantages I had thought P2P would bring is the fact that it is a serverless setup.
Now that I have this working I noticed that you do need a resolver to keep track of who is connected.
To me this is really does require a server as you need a resolver to make P2P work in the first place.
Ami missing something?
It depends on your definition of a server I suppose. Using a P2P game for example most players will connect to a central point, be matched up and will then communicate between themselves with no involvement from the server.
This means the server doesn't have to host any data it simply has to coordinate those who do. It keeps resources down (as each client only needs to connect once) and the infrastructure is often more robust.
Do you need a central application to coordinate peers? Yes
Does that application need to stream content/data to each peer? No

C# Networking, beginner to advanced [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am looking for a tutorial about advanced C# networking, especially about the server part. i want to create a server that can take 1000 connections at the same time. I have learn more about Sockets and TcpClient, but i also know about WCF and UDP. I want an example of server that can have 1000 connections, i have searched on the google about a server like this but i didn't found any or maybe i didn't realize it can take 1000 connections. Do you know some example, tutorial or something else that can help me understand better this technology?
Using the keywords from your question, I came up with:
http://www.codeproject.com/KB/IP/socketsincsharp.aspx
Try to create server that will handle 1 connection first,
then 2,
then 10,
then 1000.
From 'what are sockets' to 'I need server with 1000 connections' there is at least ONE year for you, but don't let that discourage you.

Recommend an extensible SMTP server [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have this weird situation where I have to accept email from my users. I want to be able to intercept an incoming SMTP message, see if it's authenticated (inspect the username/password myself and check those against my user database), then parse the message in full and do something (log a post in my application, for example). I need somebody to do the heavy lifting for me and take care of the SMTP protocol, transport encryption, etc and let me take care of the rest.
My problem is that I can't find an extensible SMTP server that will either let me plug into its processing pipeline or maybe embed it in my application or service. Do you know one? I'd love to program the SMTP logic in C#, but I can consider other options like external pipe programs, COM objects, running on a Unix system under Mono, etc.
There is an SMTP package included as part of the Neokernel Web Server that may address your needs.
The API documentation is online at http://www.neokernel.com/nk_docs/index.html, look at com.neokernel.email package for details.

Server Push technique with WCF for pushing data to clients [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
How can i use Server Push with my WCF web service to communicate with the asp.net clients and push the data to the browser? Can i implement BOSH with WCF?
Thank you.
NLV
Hi
You can use the attached example I have made.
If you sent it to be a public push server - i.e available via WebService - you will have to add a webservice that will use the MSMQ.
The problem is that you will need to have an IIS installed on both the server and the client.
If you use it internally then MSMQ will be enough.
http://www.codeproject.com/KB/WCF/WcfMsmqServerPush.aspx
There is a sample here
Another alternative is signalR

Using RTMP or RTSP protocol in C# [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Do you know any library that allows me to send from C# an encoded audio/video stream to a streaming server using RTMP or RTSP communication protocol ?
http://www.streamcoders.com/ looks nice.
RTSP.NET
Is a RFC 2326 compliant software stack for the Microsoft .NET framework. You can use it from any .NET-compatible programming language, such as C#, VB.NET or C++/CLI.
TCP Interleaving
Unicast UDP
Multicast UDP
RTSP over HTTP
Polymorphic content (XML, SDP, custom)
Transactional layer (based on request-response model)
As per this link. RTP.NET is no longer a separate product of Streamcoders.
The full functionality of RTP.NET plus additional features are included in MediaSuite.NET.
Try this library: http://www.broccoliproducts.com/softnotebook/rtmpclient/rtmpclient.php

Categories

Resources