commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10993 - gnuradio/branches/developers/eb/vrt/vrt/apps


From: eb
Subject: [Commit-gnuradio] r10993 - gnuradio/branches/developers/eb/vrt/vrt/apps
Date: Fri, 8 May 2009 12:54:59 -0600 (MDT)

Author: eb
Date: 2009-05-08 12:54:58 -0600 (Fri, 08 May 2009)
New Revision: 10993

Modified:
   gnuradio/branches/developers/eb/vrt/vrt/apps/simple_rx_samples.cc
Log:
checkpoint

Modified: gnuradio/branches/developers/eb/vrt/vrt/apps/simple_rx_samples.cc
===================================================================
--- gnuradio/branches/developers/eb/vrt/vrt/apps/simple_rx_samples.cc   
2009-05-08 18:51:39 UTC (rev 10992)
+++ gnuradio/branches/developers/eb/vrt/vrt/apps/simple_rx_samples.cc   
2009-05-08 18:54:58 UTC (rev 10993)
@@ -83,7 +83,7 @@
     perror("getsockname");
   }
   
-  *ctrl_port_inaddr = si_other.sin_addr;
+  *ctrl_port_inaddr = si_me.sin_addr;
 
   if (1){
     char buf[128];
@@ -131,6 +131,10 @@
 
   printf("our data port = %d\n", data_port);
 
+  *ctrl_fd_ptr = ctrl_fd;
+  *data_fd_ptr = data_fd;
+  *data_port_ptr = data_port;
+
   return true;
 }
 
@@ -170,10 +174,10 @@
   int  samples_per_pkt = 0;        // use default
   int  siggen_param = 0;
 
-  int           ctrl_fd = 0;       // socket for control
+  int           ctrl_fd;           // socket for control
   struct in_addr ctrl_port_inaddr;  // our ip addr
   int           data_fd;           // socket for data
-  int           data_port = 0;     // our data port number
+  int           data_port;         // our data port number
 
   if (!open_sockets(quad_radio_ip, quad_radio_ctrl_port,
                    &ctrl_fd, &ctrl_port_inaddr, &data_fd, &data_port))
@@ -189,7 +193,10 @@
   }
 
   // start receiving packets
-  
 
+  while(1){
+    sleep(5);
+  }
+
   return 0;
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]