Hi I am writtnig a simply Client - Server program. In this program I have to use getopt() library to get port number and ip address like this:
server -i 127.0.0.1 -p 10001
I do not know how can i get a values form optarg, to use they later in program.
And ofcourse sorry for my english. This is not my native language. :)