$search
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <sched.h>
#include <ros/console.h>
#include <ros/time.h>
#include <wge100_camera/ipcam_packet.h>
#include <wge100_camera/host_netutil.h>
#include <wge100_camera/wge100lib.h>
#include <wge100_camera/mt9v.h>
Go to the source code of this file.
Classes | |
class | WGE100Simulator |
Defines | |
#define | CAST_AND_CHK(type) |
#define | FILL_HDR(pkttype, pktid) |
#define | SEND_RSP |
Functions | |
int | main (int argc, char **argv) |
#define CAST_AND_CHK | ( | type | ) |
#define FILL_HDR | ( | pkttype, | |||
pktid | ) |
if (false) ROS_INFO("Sending a "#pkttype" packet."); \ Packet##pkttype rsp; \ rsp.hdr.magic_no = htonl(WG_MAGIC_NO); \ strncpy(rsp.hdr.hrt, #pkttype, sizeof(rsp.hdr.hrt)); \ rsp.hdr.type = htonl(pktid);
Definition at line 404 of file wge100_sim.cc.
#define SEND_RSP |
sockaddr_in rsp_addr; \ bzero(&rsp_addr, sizeof(rsp_addr)); \ rsp_addr.sin_family = AF_INET; \ rsp_addr.sin_addr.s_addr = hdr->reply_to.addr; \ rsp_addr.sin_port = hdr->reply_to.port; \ sendto(socket_, &rsp, sizeof(rsp), 0, \ (struct sockaddr *) &rsp_addr, sizeof(rsp_addr));
Definition at line 412 of file wge100_sim.cc.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 472 of file wge100_sim.cc.