diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-01-27 14:56:43 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-01-27 14:56:43 +0100 |
commit | 36e55334774aea225513ec84adae1a60802d6f74 (patch) | |
tree | d3a8f6d4290c14b0665a74a4008bc8ccbbb114a4 | |
parent | 8d7eff7835405ed10b7659cc831a6727d0c02daf (diff) |
Print Connected
-rw-r--r-- | netcatchat.cpp | 2 |
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; |