diff --git a/src/client/main.cc b/src/client/main.cc index 552bf17..6cb56da 100644 --- a/src/client/main.cc +++ b/src/client/main.cc @@ -10,8 +10,12 @@ using std::cout, std::cin, std::endl, std::string; int main() { struct Message { - char * content; + string content; string username; + + string toString() { + return "User '" + username + "' wrote:\n" + content; + } }; int clientSocket = socket(AF_INET, SOCK_STREAM, 0);