client: Add API function to close and re-connect network connection

Change-Id: Ib4e17948ffa84e73c1c81734e6002a73251d744b
This commit is contained in:
Holger Hans Peter Freyther 2016-08-25 19:55:36 +02:00
parent 3d439d0d08
commit c1c194393b
2 changed files with 7 additions and 0 deletions

View File

@ -79,3 +79,5 @@ void osmo_client_send_data(struct osmo_pcap_client *client,
struct pcap_pkthdr *hdr, const uint8_t *data);
void osmo_client_send_link(struct osmo_pcap_client *client);
void osmo_client_connect(struct osmo_pcap_client *);
void osmo_client_reconnect(struct osmo_pcap_client *);

View File

@ -201,3 +201,8 @@ void osmo_client_connect(struct osmo_pcap_client *client)
rate_ctr_inc(&client->ctrg->ctr[CLIENT_CTR_CONNECT]);
osmo_client_send_link(client);
}
void osmo_client_reconnect(struct osmo_pcap_client *client)
{
lost_connection(client);
}