Displaying 1 result from an estimated 1 matches for "mask_str".
Did you mean:
task_str
2007 Feb 12
1
playing with SO_BROADCAST on centos
...{
tm.tv_sec = 0;
tm.tv_usec = 500000;
FD_ZERO(&read_set);
FD_SET(socket_handle, &read_set);
error = select(socket_handle + 1, &read_set, NULL, NULL, &tm);
if(error <= 0)
{
break;
}
else
{
char ip_str[100];
char mac_str[100];
char mask_str[100];
error = recvfrom(socket_handle, &nmp, sizeof(nmp), 0, NULL, 0);
if(error < 0)
{
printf("errno=%d %s\n", errno, strerror(errno));
continue;
}
else if(nmp.code != IWord(NMP_LIST))
{
printf("unknown return\n");
continue...