]> hackdaworld.org Git - my-code/ivac.git/commitdiff
added SO_BROADCAST support
authorhackbard <hackbard>
Thu, 17 Oct 2002 15:57:16 +0000 (15:57 +0000)
committerhackbard <hackbard>
Thu, 17 Oct 2002 15:57:16 +0000 (15:57 +0000)
datagram.c

index 5f47a45b9fb326fb26c88671cc799f03ca97b0d3..83c4bc8d13674e8768c8a0709a3113b262d2bb61 100644 (file)
@@ -41,6 +41,8 @@ int main(int argc, char *argv[]) {
     printf("can't open socket.\n");
     exit(1);
   }
+
+  // setsockopt(send_fd,SOL_SOCKET,SO_BROADCAST,
  
   memset(&local_addr,0,sizeof(local_addr));
   local_addr.sin_family=AF_INET;