diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 21:19:22 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-31 21:19:52 +0200 |
commit | 77288207fa55e8e5d0b0f986c45b6a33ebaf891c (patch) | |
tree | 57b77d2c7ff7e7dcdde88cf2a0c520025b737c54 /src/osmo_client_main.c | |
parent | cd2d3db3b765fdaab245196ae34930180c4edb03 (diff) |
osmo-pcap-client: Connect to a server, send the data to it
Diffstat (limited to 'src/osmo_client_main.c')
-rw-r--r-- | src/osmo_client_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osmo_client_main.c b/src/osmo_client_main.c index 9c889ee..9ea0b66 100644 --- a/src/osmo_client_main.c +++ b/src/osmo_client_main.c @@ -187,6 +187,10 @@ int main(int argc, char **argv) pcap_client->fd.fd = -1; vty_client_init(pcap_client); + /* initialize the queue */ + osmo_wqueue_init(&pcap_client->wqueue, 10); + pcap_client->wqueue.bfd.fd = -1; + if (vty_read_config_file(config_file, NULL) < 0) { LOGP(DCLIENT, LOGL_ERROR, @@ -194,6 +198,9 @@ int main(int argc, char **argv) exit(1); } + /* attempt to connect to the remote */ + osmo_client_connect(pcap_client); + if (daemonize) { rc = osmo_daemonize(); if (rc < 0) { |