69     info(0, 
"Usage: test_boxc [options] ...");
    70     info(0, 
"where options are:");
    72     info(0, 
"    set log level for stderr logging");
    73     info(0, 
"-h hostname");
    74     info(0, 
"    hostname where bearerbox is running (default: localhost)");
    76     info(0, 
"    port for smsbox connections on bearerbox host (default: 13001)");
    78     info(0, 
"    numer of sequential connections that are made and closed (default: 1)");
    82 static unsigned long port = 13001;
    91     for (i = 1; i <= 
no_conn; i++) {
   109 int main(
int argc, 
char **argv)
   117     while ((opt = 
getopt(argc, argv, 
"v:h:p:c:")) != EOF) {
   138                 error(0, 
"Invalid option %c", opt);
   140                 panic(0, 
"Stopping.");
 static unsigned int no_conn
 
void error(int err, const char *fmt,...)
 
void info(int err, const char *fmt,...)
 
int main(int argc, char **argv)
 
int getopt(int argc, char **argv, char *opts)
 
void log_set_output_level(enum output_level level)
 
void connect_to_bearerbox(Octstr *host, int port, int ssl, Octstr *our_host)
 
void octstr_destroy(Octstr *ostr)
 
#define octstr_create(cstr)
 
void close_connection_to_bearerbox(void)
 
void write_to_bearerbox(Msg *pmsg)
 
void gwlib_shutdown(void)
 
static void run_connects(void)
 
static XMLRPCDocument * msg