Hi,
Thanks alot for your help....
I have been reading more on the cast operator and in the oreilly book that i have on C programming has a small section which describes the cast operator in C. Now...
Type: Posts; User: cnb
Hi,
Thanks alot for your help....
I have been reading more on the cast operator and in the oreilly book that i have on C programming has a small section which describes the cast operator in C. Now...
So the reason for converting expression host->h_addr_list[0] to unsigned long* is because h_addr.s_addr is a type __u32 is this why the cast is used to convert the expression to unsigned long?
So...
Hi,
Thanks for your help....just one more further clarification
h_addr.s_addr = *((unsigned long *) host->h_addr_list[0]);
I am currently looking at the following website which tells some of...
Hi,
Thanks for your reply.
So the following line i can read it as:
h_addr.s_addr = *((unsigned long *) host->h_addr_list[0]);
host is pointer to pointer to unsigned long or is it host is...
Hi,
I am currently looking through a simple C program which basically is a very basic nslookup tool. My question is regarding on how some of the C code in this is working.
Here is the pieces of...
Hi,
All i would like to do is write a function that can retrieve all the IP address's that are currently configured on my system and than use one of those IP address as a source IP address.
So how...
Hi,
thanks for your reply.
But the IP address it gets from the system is wrong i.e. in the case if you do not specific a -s 192.168.1.1 it assumes that the source is 127.0.1.1, here is the example...
Hi,
Yes there is typo in my original message:
The code looks like this:
#include <stdio.h>
int main(int argc, char *argv[])
{
int i, j;
Hi,
I have question regarding following example from cprogramming faq section:
#include <stdio.h>
int main(int argc, char *argv[])
{
int i, j;
for (i = 0; i < argc; i++)
Hi,
I found the following example in the networking forum regarding a simple ping to demonstrate the use of Linux raw sockets example. See the code below.
I was able to compile and run this...
Thanks......hope you can find the link.....
thanks
Hi,
I am trying to write a program similar to ping in linux but a simplified version so i can learn the sockets programming under linux.
I have had a look at the ping.c from the iputils package...
Hi,
I have tried both and i get the same error message, are you able to tell me exact steps i can follow to correct this problem....i have also tried using google with the error message but i still...
Hi,
what i am trying to do is to compile the iputils from the source code and the reason for this is that later on i want to make changes to ping.c i.e. add my own functionality so i thought the...