More stub action; at least binding to a local port and listening on a local port share enough common functionality to substantiate this
This commit is contained in:
parent
fbee61133a
commit
e8ddd504d7
1 changed files with 8 additions and 1 deletions
|
@ -80,7 +80,7 @@ error_malloc_sock:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int patty_ax25_listen(patty_ax25 *ax25, int socket, const char *callsign, int ssid) {
|
int patty_ax25_bind(patty_ax25 *ax25, int socket, const char *callsign, int ssid) {
|
||||||
patty_ax25_sock *sock;
|
patty_ax25_sock *sock;
|
||||||
|
|
||||||
if ((sock = patty_dict_get(ax25->fd_lookup, &socket, sizeof(socket))) == NULL) {
|
if ((sock = patty_dict_get(ax25->fd_lookup, &socket, sizeof(socket))) == NULL) {
|
||||||
|
@ -111,6 +111,13 @@ error_dict_get:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int patty_ax25_listen(patty_ax25 *ax25, int socket, const char *callsign, int ssid) {
|
||||||
|
/*
|
||||||
|
* Stub
|
||||||
|
*/
|
||||||
|
return patty_ax25_bind(ax25, socket, callsign, ssid);
|
||||||
|
}
|
||||||
|
|
||||||
int patty_ax25_connect(patty_ax25 *ax25, int socket, const char *callsign, int ssid) {
|
int patty_ax25_connect(patty_ax25 *ax25, int socket, const char *callsign, int ssid) {
|
||||||
patty_ax25_sock *sock;
|
patty_ax25_sock *sock;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue