diff options
| author | Anton <anton@picapica> | 2015-04-15 02:05:07 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2015-04-15 02:05:07 +0400 |
| commit | 9147cd24d5b749d9e74ad308fb059f79c7abf115 (patch) | |
| tree | 49199e768b1a36a274a26854c4e7d994d72fccb4 | |
| parent | c0f121ab3484fdeb0da6a4f26b85bcf91932b818 (diff) | |
| download | pica-pica-9147cd24d5b749d9e74ad308fb059f79c7abf115.tar.gz pica-pica-9147cd24d5b749d9e74ad308fb059f79c7abf115.zip | |
callback for listener error notification
| -rwxr-xr-x | PICA_client.c | 2 | ||||
| -rwxr-xr-x | PICA_client.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/PICA_client.c b/PICA_client.c index c10ca1d..1f52e5c 100755 --- a/PICA_client.c +++ b/PICA_client.c @@ -1572,7 +1572,7 @@ while(ilst && *ilst) ret = process_listener(*ilst, &rfds); if (ret != PICA_OK) - return ret; + callbacks.listener_error(*ilst, ret); ilst++; } diff --git a/PICA_client.h b/PICA_client.h index 9b51b6f..96be77f 100755 --- a/PICA_client.h +++ b/PICA_client.h @@ -250,6 +250,8 @@ void (*c2n_established_cb)(struct PICA_c2n *c2n); void (*c2n_failed_cb)(struct PICA_c2n *c2n); void (*c2n_closed_cb)(struct PICA_c2n *c2n); + +void (*listener_error)(struct PICA_listener *lst, int errorcode); }; |
