69 #define UDP_MAXIMUM (65535 - 40)    71 static unsigned char usage[] = 
"\    72 Usage: udpfeed [options] files...\n\    77 -g hostname name of IP number of host to send to (default: localhost)\n\    78 -p port     port number to send to (default: 9200)\n\    79 -i interval delay between packers (default: 1.0 seconds)\n\    81 Each file will be sent as a single packet.\n\    97     if (contents == NULL) {
   114 int main(
int argc, 
char **argv) {
   124     while ((opt = 
getopt(argc, argv, 
"hg:p:i:m:")) != EOF) {
   143                 warning(0, 
"-m: truncated to UDP maximum of"   155             error(0, 
"Unknown option '%c'", opt);
 void error(int err, const char *fmt,...)
 
void info(int err, const char *fmt,...)
 
int getopt(int argc, char **argv, char *opts)
 
int udp_client_socket(void)
 
static unsigned char usage[]
 
void warning(int err, const char *fmt,...)
 
void octstr_destroy(Octstr *ostr)
 
char filename[FILENAME_MAX+1]
 
#define octstr_create(cstr)
 
void gwthread_sleep(double seconds)
 
Octstr * octstr_read_file(const char *filename)
 
long octstr_len(const Octstr *ostr)
 
int main(int argc, char **argv)
 
void gwlib_shutdown(void)
 
void octstr_truncate(Octstr *ostr, int new_len)
 
int udp_sendto(int s, Octstr *datagram, Octstr *addr)
 
static void send_file(int udpsock, char *filename, Octstr *address)
 
Octstr * udp_create_address(Octstr *host_or_ip, int port)