Fix bug 4

Delete the dash in the function getopt.
Then we can read the dir correctly.
Use colon in the function getopt

Can receive arguments followed without a space.
ex. ./sws -ccgidir -p6060 dir
Fix function dircheck

Change the return value of function dircheck from void to int. Use
return 0 and 1 instead of exit(EXIT_SUCCESS) or exit(EXIT_FAILURE). The
old version will exit whatever the input is a directory or not.
Also, make the command line more strict. That is, must input the local
directory in the end of the command line.
Add function ipcheck

Add the function ipcheck to check the IP address validation.
Also include <arpa/inet.h> to use the function inet_addr().
But, the function may not support ipv6.
Add function filecheck

To check the loggin file is valid.
Add function portcheck

To check if the port is valid.
Change names of functions

Add _ .