send.h
Go to the documentation of this file.
1 
23 #ifndef UDP_BC_BROKER_SEND_H_
24 #define UDP_BC_BROKER_SEND_H_
25 
26 #include <iostream>
27 #include <stdio.h>
28 #include <sys/socket.h>
29 #include <unistd.h>
30 #include <sys/types.h>
31 #include <netdb.h>
32 #include <netinet/in.h>
33 #include <arpa/inet.h>
34 #include <string.h>
35 
36 using namespace std;
37 
38 namespace udp_bc_broker{
39  class UdpSender {
40  public:
41  UdpSender(int port);
42  void send(const char *msg, int len);
43  private:
44  int sock;
45  struct sockaddr_in addrto;
46  int nlen;
47  };
48 };
49 
50 #endif


udp_bc_broker
Author(s):
autogenerated on Mon Jun 10 2019 14:02:40