command parser for (filename,host, and port)

I finish the code you guys can  check it out am not sure if its right?
waiting on your feedback