summaryrefslogtreecommitdiffstats
path: root/uca-net-protocol.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-12-16 15:12:21 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-12-16 15:23:41 +0100
commitcb27d4d80e98cb7cb97cfd0bfe0eade67565a762 (patch)
treea06f3a1c29a7b63bdd31a9a66ac9025a1fca1404 /uca-net-protocol.h
parentb925ab14dfc7d8600c0dd2f2bbcb4639bb40c26e (diff)
downloaduca-net-cb27d4d80e98cb7cb97cfd0bfe0eade67565a762.tar.gz
uca-net-cb27d4d80e98cb7cb97cfd0bfe0eade67565a762.tar.bz2
uca-net-cb27d4d80e98cb7cb97cfd0bfe0eade67565a762.tar.xz
uca-net-cb27d4d80e98cb7cb97cfd0bfe0eade67565a762.zip
Fix #3: use one socket connect per request
Previously all requests shared the same connection which meant that the client had to wait that a request finished until it could issue another request. Otherwise, replies could end up for the wrong request causing all kinds of problems. This synchronous request-reply model could not be kept because of inherent asynchronicity of certain mechanisms (e.g. grab + software trigger). This change removes the always-open socket connection and replaces it with a new connection per request. Due to the OS multiplexing, replies cannot be mistaken.
Diffstat (limited to 'uca-net-protocol.h')
-rw-r--r--uca-net-protocol.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/uca-net-protocol.h b/uca-net-protocol.h
index de05aac..4a1b5b6 100644
--- a/uca-net-protocol.h
+++ b/uca-net-protocol.h
@@ -15,7 +15,6 @@ typedef enum {
UCA_NET_MESSAGE_TRIGGER,
UCA_NET_MESSAGE_GRAB,
UCA_NET_MESSAGE_WRITE,
- UCA_NET_MESSAGE_CLOSE_CONNECTION,
} UcaNetMessageType;
typedef struct {