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
5
votes
2 answers

WCF duplex service using net tcp: "Stream Security is required..."

I'm writing a service that allows users to register with it and receive notifications when an event happens. I'm trying to do this with netTcpBinding, but keep coming up with errors, even when running on my local machine. When I try to send a…
Gromer
  • 9,861
  • 4
  • 34
  • 55
5
votes
1 answer

WCF: Exception handling on OneWay OperationContract

I am having a WCF duplex service with Silverlight client and .NET 3.5 WCF service. The scenario I have is: during the duplex push OneWay operation from server to client if an exception happens in client notification handler the channel gets silently…
Nikola Malovic
  • 1,230
  • 1
  • 13
  • 24
5
votes
1 answer

WIA 2.0 Duplex property

I am developing an aplication with C# to use the WIA 2.0 library. At the moment I could use most of the features, such as ADF (auto document feeder), filters and more. Now, I need to use the duplexer of my scanner (fujitsu). I'm trying to set the…
Andrey
  • 461
  • 1
  • 6
  • 17
5
votes
2 answers

StreamedResponse with Silverlight 4 polling duplex not sending updates

I'm trying to enable a streamed response using Silverlight 4 and polling duplex, but I'm getting strange behaviour when the rate at which updates are sent to the client is greater than the maxOutputDelay, which results in no updates being sent. For…
Andrew
  • 655
  • 2
  • 7
  • 11
5
votes
2 answers

Full duplex socket vs. two sockets used, one for read and other for write

I was wondering, 1st question What are the pros and cons of using one socket (full duplex) vs. two socket (simplex) per peer: one for read and other write? Specially in terms of performance and resource utilization. 2nd question In case, if i…
Abhishek Jain
  • 9,614
  • 5
  • 26
  • 40
5
votes
1 answer

Faulted WCF duplex callback after inactivity - keep alive long-running push notifications

In short How to prevent a duplex callback channel to be closed after an idle period? In detail I have a mostly working duplex WCF setup over NetTcpBinding i.e. the client can talk to the server and the server can call back to the…
Cel
  • 6,467
  • 8
  • 75
  • 110
5
votes
1 answer

How to read WCF message headers in duplex callback?

In a normal WCF request/reply contract, you can read the message headers using something like: OperationContract.Current.IncomingMessageHeaders What I can't figure out is how to do this on the callback side of a duplex contract. Inside the callback…
Simon Gillbee
  • 3,932
  • 4
  • 35
  • 48
5
votes
2 answers

when to use duplex service?

Well, I know that in a duplex contract the service can send messages to the client, but I would like to know when that is really useful. I have a common application that send request to the service to get data from the a database, insert data...…
Álvaro García
  • 18,114
  • 30
  • 102
  • 193
4
votes
3 answers

JAVA push from server to clients

I would like to have the clients query each other through the server without delay ( = no polling interval ). Example: Server S, clients A and B Client A wants to request Client B. Client A will make a request to the server S, no problem there. Then…
benji
  • 2,331
  • 6
  • 33
  • 62
4
votes
1 answer

How can I use boost asio sockets for full duplex streaming efficiently?

I'm writing a performance-critical bidirectional streaming server using boost.asio. The server works this way : Thread A treats and pushes objects to be sent in the OUTPUT queue Thread B waits for objects in the INPUT queue to treat them Thread C…
dmp32
  • 95
  • 2
  • 5
4
votes
2 answers

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

I have followed this tutorial for building my chat application. When I try to add reference of my service I get the following error: Contract requires Duplex, but Binding 'BasicHttpBinding' doesn't support it or isn't configured properly to …
Taha
  • 1,086
  • 1
  • 10
  • 20
4
votes
2 answers

How to implement a full duplex channel over TCP with a single thread?

The network lib I'm writing needs to send and receive messages through a TCP socket. Messages can be sent or received any time, i.e should work as a full duplex channel. I was able to implement such scenario using two threads: main thread calling…
Igor Gatis
  • 4,648
  • 10
  • 43
  • 66
4
votes
2 answers

Duplex Callbacks or Client-Side Threading for Responsive WCF Clients

I have a certain service where specific functions will take longer to call than others, sometimes they might take seconds to return. In order to prevent the client's UI being blocked when this happens what is the preferred solution: Use a Duplex…
laurencer
  • 1,680
  • 1
  • 19
  • 29
4
votes
2 answers

WCF: is it possible to use streaming mode in a duplex channel?

In WCF, contracts can be switched to streaming mode, to transfer large messages. After reading and testing it seems to me, that streaming mode can not be used with duplex channels (channels with OneWay-calls and a callback interface). Is this so? Do…
Sam
  • 28,421
  • 49
  • 167
  • 247
4
votes
1 answer

WCF Duplex callback method never executes when invoked from a different thread

Ok I am at my wit's end with this thing. I have a WCF duplex service. Here is how the architecture works: The client opens a connection to the endpoint and supplies a callback implementation The service takes that request and does some stuff on…
Phoenix
  • 913
  • 1
  • 8
  • 18
1 2
3
22 23