Questions tagged [duplex]

A duplex communication system is a point-to-point system composed of two connected parties or devices that can communicate with one another in both directions, simultaneously.

A duplex communication system is a point-to-point system composed of two connected parties or devices that can communicate with one another in both directions, simultaneously. An example of a duplex device is a telephone.

338 questions
52
votes
7 answers

Is TCP bidirectional or full-duplex?

Bidirectional and full-duplex are different concepts. For example the Ethernet is only half-duplex because at a specific time, only one host can send data over the wire, and it cannot send and receive data simultaneously. So when we use TCP over an…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
49
votes
4 answers

How to handle WCF exceptions (consolidated list with code)

I'm attempting to extend this answer on SO to make a WCF client retry on transient network failures and handle other situations that require a retry such as authentication expiration. Question: What are the WCF exceptions that need to be handled,…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
35
votes
10 answers

Could not find a base address that matches scheme net.tcp

I have moved my file transfer service from basicHttpBinding to netTcpBinding as I am trying to set up a duplex mode channel. I have also started my net.tcp port sharing service. I am currently in dev and am self hosting on an xp box until we move…
Peter
  • 5,251
  • 16
  • 63
  • 98
31
votes
2 answers

Detecting Client Death in WCF Duplex Contracts

I'm trying to build a SOA where clients can perform long running queries on the server and the server responds using a callback. I'd like to be able to detect if the client disconnects (through user initiated shutdown, unhandled exception or loss of…
Sindhudweep
  • 784
  • 1
  • 6
  • 12
18
votes
4 answers

Seeking WCF Duplex "TwoWay" Subscribe+Callback Example

Renewing the bounty AGAIN because I really need to know how to get this to work, or a definitive answer about why it won't. I've added an alternative explanation of the problem here. Having a hell of a time getting a two-way (IsOneWay = false) WCF…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
16
votes
2 answers

Handling dropped clients in a duplex binding WCF application

We are using a pub-sub model in our WCF application that pretty much follows the Microsoft sample: Design Patterns: List-Based Publish-Subscribe. Whilst the service provides a notion of subscribe() and unsubscribe(), what is the best practice to…
Pero P.
  • 25,813
  • 9
  • 61
  • 85
14
votes
4 answers

How do I automatically re-establish a duplex channel if it gets faulted?

I'm developing a client/server application in .Net 3.5 using WCF. Basically, a long running client service (on several machines) establish a duplex connection to the server over a netTcpBinding. The server then uses the callback contract of the…
Jacob
  • 22,785
  • 8
  • 39
  • 55
13
votes
5 answers

Prevent deadlock issue with WCF duplex callback service

I have a problem with a self-hosted wcf duplex callback service. I get an InvalidOperationException with message: This operation would deadlock because the reply cannot be received until the current message completes processing. If you want to…
EnLaCucha
  • 476
  • 1
  • 8
  • 22
11
votes
1 answer

Getting an error: Contract requires Duplex, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to support it

I have a WCF service and a Silverlight 5 client. I've defined the following interfaces: [ServiceContract(Namespace = "Silverlight", CallbackContract = typeof(IDuplexClient))] public interface IDuplexService { [OperationContract] void…
assafmo
  • 1,047
  • 3
  • 15
  • 32
10
votes
2 answers

WSDualHttpBinding for duplex callbacks

Would using WSDualHttpBinding for duplex callbacks work in real-world scenarios? Say, I have a .NET application that uses a random port, would the service be able to resolve the client's base addresses and port for callbacks?
GP.
  • 1,293
  • 5
  • 14
  • 20
10
votes
5 answers

WCF Duplex Callback Sample failing

In an effort to hone some example services to be used as reference for our internal scenarios, I've created this WCF Duplex Channel example, pulling together several examples found through the years. The duplex part isn't working and I'm hoping we…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
9
votes
1 answer

Is WCF Duplex a good choice?

After developing mini project with WCF duplex (Chat Service | Sms Service), I got a Point that maybe not be correct!! I believed Duplex theory is good and useful but there is a lot problem about using Wcf Duplex. (like reliable session, Time-out…
Rev
  • 2,269
  • 8
  • 45
  • 75
9
votes
6 answers

WCF push to client through firewall?

See also How does a WCF server inform a WCF client about changes? (Better solution then simple polling, e.g. Coment or long polling) I need to use push-technology with WCF through client firewalls. This must be a common problem, and I know…
Sire
  • 4,086
  • 4
  • 39
  • 74
9
votes
2 answers

How to code two-way duplex streams in NodeJS

In the latest few versions of NodeJS (v0.10.X as of writing), the Streams API has undergone a welcome redesign and I would like to start using it now. I want to wrap both the input and output of a socket with an object which implements a…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
8
votes
2 answers

Best practice for WCF Duplex client

I can't deny the performance benefit of a duplex async call, but some things about makes me feel wary. My concern is that given a client object instantiated, will WCF be able to tell which particular client service instance will receive the callback…
Alwyn
  • 8,079
  • 12
  • 59
  • 107
1
2 3
22 23