summaryrefslogtreecommitdiffstats
path: root/libvncclient/sockets.c
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-12 23:48:26 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-12 23:48:26 -0600
commit1d8b3c0548782dcd7286fed6b31c17351c15bb50 (patch)
treecf4d504b2ea8c7441ee6cd86d21b26f6a5efd132 /libvncclient/sockets.c
parent0ca63a7ab62867cafdede1179aa4809f26ccdb64 (diff)
downloadlibtdevnc-1d8b3c0548782dcd7286fed6b31c17351c15bb50.tar.gz
libtdevnc-1d8b3c0548782dcd7286fed6b31c17351c15bb50.zip
Add hooks to client library to ontain network and authentication status
Diffstat (limited to 'libvncclient/sockets.c')
-rw-r--r--libvncclient/sockets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c
index e32c60e..225450c 100644
--- a/libvncclient/sockets.c
+++ b/libvncclient/sockets.c
@@ -173,6 +173,8 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)
return FALSE;
}
} else {
+ if (client->NetworkStatus)
+ client->NetworkStatus(client, rfbNetworkConnectionClosed);
if (errorMessageOnReadFailure) {
rfbClientLog("VNC server closed connection\n");
}
@@ -212,6 +214,8 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)
return FALSE;
}
} else {
+ if (client->NetworkStatus)
+ client->NetworkStatus(client, rfbNetworkConnectionClosed);
if (errorMessageOnReadFailure) {
rfbClientLog("VNC server closed connection\n");
}