@ -60,7 +60,7 @@ typedef struct SRSLTE_API {
SRSLTE_API int srslte_netsink_init(srslte_netsink_t *q,
char *address,
int port,
uint16_t port,
srslte_netsink_type_t type);
SRSLTE_API void srslte_netsink_free(srslte_netsink_t *q);
@ -61,7 +61,7 @@ typedef struct SRSLTE_API {
SRSLTE_API int srslte_netsource_init(srslte_netsource_t *q,
srslte_netsource_type_t type);
SRSLTE_API void srslte_netsource_free(srslte_netsource_t *q);
@ -38,7 +38,7 @@
#include "srslte/io/netsink.h"
int srslte_netsink_init(srslte_netsink_t *q, char *address, int port, srslte_netsink_type_t type) {
int srslte_netsink_init(srslte_netsink_t *q, char *address, uint16_t port, srslte_netsink_type_t type) {
bzero(q, sizeof(srslte_netsink_t));
q->sockfd=socket(AF_INET, type==SRSLTE_NETSINK_TCP?SOCK_STREAM:SOCK_DGRAM,0);
@ -36,7 +36,7 @@
#include "srslte/io/netsource.h"
int srslte_netsource_init(srslte_netsource_t *q, char *address, int port, srslte_netsource_type_t type) {
int srslte_netsource_init(srslte_netsource_t *q, char *address, uint16_t port, srslte_netsource_type_t type) {
bzero(q, sizeof(srslte_netsource_t));
q->sockfd=socket(AF_INET,type==SRSLTE_NETSOURCE_TCP?SOCK_STREAM:SOCK_DGRAM,0);