/* Send raw data through network */ #include #include #include #include /* gettimeofday() */ #include /* struct sockaddr */ #include #include /* inet_ntoa() */ #include #include /* stderr, printf() */ #include #include /* perror(), calloc() */ #include /* write() */ #include #include "notify.h" /* notify_start(), ... */ #include "raw_rtp.h" /* RTP headers */ #include "ansi.h" #include "sysdep.h" #include "global.h" #include "md5.h" /* Random Number generation stuff for RTP SSRC */ #define MD_CTX MD5_CTX #define MDInit MD5Init #define MDUpdate MD5Update #define MDFinal MD5Final #define DEBUG u_long md_32(char *string, int length); u_int32 random32(int type); int send_handler(u_int8 *raw_data, int buf); u_int16 SendFrame(u_int16 start_seq, u_int32 ts, u_int32 ssrc, u_int8 *jpeg_data, int len, u_int8 x, u_int8 y, int width, int height); double tdbl(struct timeval *a); int GetSendSocekt(char *host, struct sockaddr_in *sin, unsigned char *ttl, char* argv0); extern int hpt(char *h, struct sockaddr *sa, unsigned char *ttl);