Commit c1fe957c authored by TheLostWanderer's avatar TheLostWanderer
Browse files

rename include header to .h. Print info on portnb

parent 7379a659
......@@ -9,8 +9,8 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string>
#include "utils.hpp"
/* #include <string> */
#include "utils.h"
int main(int argc, char *argv[])
{
......@@ -67,6 +67,7 @@ int main(int argc, char *argv[])
// until accept() call accepts the connection.
// Here, we set the maximum size for the backlog queue to 5.
listen(sockfd, 5);
printf("Server is listening on port %d", portnb);
// The accept() call actually accepts an incoming connection
client_len = sizeof(s_client_addr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment