mirror of https://gerrit.osmocom.org/osmo-pcap
client: Add API function to close and re-connect network connection
Change-Id: Ib4e17948ffa84e73c1c81734e6002a73251d744b
This commit is contained in:
parent
3d439d0d08
commit
c1c194393b
|
@ -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 *);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue