Don't confuse with the 16 bits which I said before .I just said that to store the ip in a string. Then Since the ip address having the '.'...
When you connect with the host , you can just connect with the single port only.Because each port is for a single connection .So you can not get...
1.In your first code you created only one socket , so for that you got only one port.But in your second code you created some number of sockets...
I checked your code in linux machine.so I have changed few lines. In your code there is no need to two loops.You can do that using a single loop....
I have checked your code in linux environment and I inserted some of the lines to manage the flow. When I execute I got the error "undefined...
You can not straight away copy the structure ,you need to pass the address of the structure to the function then using that address you can copy...
Here is the algorithm , 1 . Create a message queue id by using the "msgget". 2 . Then open the source file and copy a line to the...
I think you are using send and receive functions in you socket program.Instead try with sendto ,recvfrom functions you will get the address and...
You can do it . Normally the whole packet will store as a structure .So when you receive a socket you can just change the particular structure...
please explain your requirement briefly .
Shell programming is noting but a sequence of instructions which includes some of the shell commands. It provide the way to achieve complex task...
time will give its output in seconds and micro seconds . It will give three kind of times real,user,system.Here the real time the execution...
If you need compilation time of the C program you can use the time command in linux environment ....
Separate names with a comma.