samedi 15 mars 2014

Full Duplex HTTPWebRequest

It had been more than 20 years since I wrote a serious communication package and that was using VTAM (and LU 6.2, 3270), so my terminologies might be out of date.



Full duplex, the ability to send communication in both directions. Like a telephone call, the two parties can talk at the same time.



A half duplex is in simple terms, is the same but only allows one direction at a time. It means the client sends a request to the host then waits for a response.



I wrote some test programs using Csharp using HttpWebRequest. It looks like it only works in half duplex. It means the client sends a request to the server then wait for the response.



I have an idea for IOS/Android application. The problem is that I need to have full duplex. I can implement it using HTTP(half duplex), but that would mean that I would have to send a "polling" request every 2 seconds to find out if there are information the client needs to process.



Is there any other way (or protocol) where I can implement a full duplex type of application.



And what are new terminologies for full/half duplex?



Thanks in advance.





via JREF Forum http://ift.tt/1eDyqxa

Aucun commentaire:

Enregistrer un commentaire