From cb27d4d80e98cb7cb97cfd0bfe0eade67565a762 Mon Sep 17 00:00:00 2001
From: Matthias Vogelgesang <matthias.vogelgesang@kit.edu>
Date: Fri, 16 Dec 2016 15:12:21 +0100
Subject: 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.
---
 uca-net-protocol.h | 1 -
 1 file changed, 1 deletion(-)

(limited to 'uca-net-protocol.h')

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 {
-- 
cgit v1.2.3