summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-01-27 14:56:43 +0100
committerTom Smeding <tom.smeding@gmail.com>2020-01-27 14:56:43 +0100
commit36e55334774aea225513ec84adae1a60802d6f74 (patch)
treed3a8f6d4290c14b0665a74a4008bc8ccbbb114a4
parent8d7eff7835405ed10b7659cc831a6727d0c02daf (diff)
Print Connected
-rw-r--r--netcatchat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/netcatchat.cpp b/netcatchat.cpp
index 8eebda5..377aa51 100644
--- a/netcatchat.cpp
+++ b/netcatchat.cpp
@@ -65,6 +65,8 @@ static void print_buffer(const char *buffer, size_t len) {
}
static void communicate(int sock) {
+ printf("Connected.\n");
+
string buffer;
string inbuffer;