send.h
Go to the documentation of this file.
00001 
00023 #ifndef UDP_BC_BROKER_SEND_H_
00024 #define UDP_BC_BROKER_SEND_H_
00025 
00026 #include <iostream>
00027 #include <stdio.h>
00028 #include <sys/socket.h>
00029 #include <unistd.h>
00030 #include <sys/types.h>
00031 #include <netdb.h>
00032 #include <netinet/in.h>
00033 #include <arpa/inet.h>
00034 #include <string.h>
00035 
00036 using namespace std;
00037 
00038 namespace udp_bc_broker{
00039     class UdpSender {
00040         public:
00041             UdpSender(int port);
00042             void send(const char *msg, int len);
00043         private:
00044             int sock;
00045             struct sockaddr_in addrto;
00046             int nlen;
00047     };
00048 };
00049 
00050 #endif


udp_bc_broker
Author(s):
autogenerated on Thu Jun 6 2019 18:52:50