nashley/Araneus

Print out port when any port is requested

nashley opened this issue · 1 comments

Use getsockname() to identify the port (and IP address) that the server is running on and print it out to the user.

Need to either include <stdio.h> in network.c or find a clean way to pass the port and IP to main().
If include <stdio.h>, why not put all print statements in it instead of in main()?
Perhaps have a separate function for either printing or putting into log file?