Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 13 of 13) sorted by relevance

/uoscore-uedhoc-3.6.0/inc/
Dedhoc.h59 void *sock; /*pointer used as handler for sockets by tx/rx */ member
77 void *sock; /*pointer used as handler for sockets by tx/rx */ member
114 enum err (*tx)(void *sock, struct byte_array *data),
115 enum err (*rx)(void *sock, struct byte_array *data),
136 enum err (*tx)(void *sock, struct byte_array *data),
137 enum err (*rx)(void *sock, struct byte_array *data),
155 enum err (*tx)(void *sock, struct byte_array *data),
156 enum err (*rx)(void *sock, struct byte_array *data),
178 enum err (*tx)(void *sock, struct byte_array *data),
179 enum err (*rx)(void *sock, struct byte_array *data),
/uoscore-uedhoc-3.6.0/test/edhoc_integration_tests/
Dtxrx_wrapper.h17 enum err rx(void *sock, uint8_t *data, uint32_t *data_len);
18 enum err tx(void *sock, uint8_t *data, uint32_t data_len);
Dtxrx_wrapper.c25 enum err rx(void *sock, uint8_t *data, uint32_t *data_len) in rx() argument
60 enum err tx(void *sock, uint8_t *data, uint32_t data_len) in tx() argument
Dinitiator_responder_interaction.c106 enum err tx_initiator(void *sock, struct byte_array *data) in tx_initiator() argument
116 enum err tx_responder(void *sock, struct byte_array *data) in tx_responder() argument
128 enum err rx_initiator(void *sock, struct byte_array *data) in rx_initiator() argument
133 enum err rx_responder(void *sock, struct byte_array *data) in rx_responder() argument
162 c_i.sock = NULL; in thread_initiator()
262 c_r.sock = NULL; in thread_responder()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/responder/src/
Dmain.cpp93 static int send_coap_reply(void *sock, CoapPDU *pdu) in send_coap_reply() argument
97 r = sendto(*((int *)sock), pdu->getPDUPointer(), pdu->getPDULength(), 0, in send_coap_reply()
116 enum err tx(void *sock, struct byte_array *data) in tx() argument
120 send_coap_reply(sock, txPDU); in tx()
124 enum err rx(void *sock, struct byte_array *data) in rx() argument
132 n = recvfrom(*((int *)sock), (char *)buffer, sizeof(buffer), 0, in rx()
188 c_r.sock = &sockfd; in main()
/uoscore-uedhoc-3.6.0/src/edhoc/
Dinitiator.c295 enum err (*tx)(void *sock, struct byte_array *data), in edhoc_initiator_run_extended() argument
296 enum err (*rx)(void *sock, struct byte_array *data), in edhoc_initiator_run_extended() argument
304 TRY(tx(c->sock, &rc.msg)); in edhoc_initiator_run_extended()
309 TRY(rx(c->sock, &rc.msg)); in edhoc_initiator_run_extended()
314 TRY(tx(c->sock, &rc.msg)); in edhoc_initiator_run_extended()
320 TRY(rx(c->sock, &rc.msg)); in edhoc_initiator_run_extended()
331 enum err (*tx)(void *sock, struct byte_array *data), in edhoc_initiator_run() argument
332 enum err (*rx)(void *sock, struct byte_array *data), in edhoc_initiator_run() argument
Dresponder.c359 enum err (*tx)(void *sock, struct byte_array *data), in edhoc_responder_run_extended() argument
360 enum err (*rx)(void *sock, struct byte_array *data), in edhoc_responder_run_extended() argument
368 TRY(rx(c->sock, &rc.msg)); in edhoc_responder_run_extended()
373 TRY(tx(c->sock, &rc.msg)); in edhoc_responder_run_extended()
378 TRY(rx(c->sock, &rc.msg)); in edhoc_responder_run_extended()
385 TRY(tx(c->sock, &rc.msg)); in edhoc_responder_run_extended()
393 enum err (*tx)(void *sock, struct byte_array *data), in edhoc_responder_run() argument
394 enum err (*rx)(void *sock, struct byte_array *data), in edhoc_responder_run() argument
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/initiator/src/
Dmain.c53 enum err tx(void *sock, struct byte_array *data) in tx() argument
78 ssize_t n = send(*((int *)sock), request.data, request.offset, 0); in tx()
93 enum err rx(void *sock, struct byte_array *data) in rx() argument
102 n = recv(*((int *)sock), (char *)buffer, MAXLINE, MSG_WAITALL); in rx()
146 c_i.sock = &sockfd; in internal_main()
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/responder/src/
Dmain.c57 enum err tx(void *sock, struct byte_array *data) in tx() argument
85 r = sendto(*((int *)sock), buffer, cp_ack.offset, 0, in tx()
96 enum err rx(void *sock, struct byte_array *data) in rx() argument
111 n = recvfrom(*((int *)sock), (char *)buffer, sizeof(buffer), 0, in rx()
154 c_r.sock = &sockfd; in internal_main()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/responder_server/src/
Dmain.cpp115 static int send_coap_reply(void *sock, CoapPDU *pdu) in send_coap_reply() argument
119 r = sendto(*(int *)sock, pdu->getPDUPointer(), pdu->getPDULength(), 0, in send_coap_reply()
138 enum err tx(void *sock, struct byte_array *data) in tx() argument
142 send_coap_reply(sock, txPDU); in tx()
146 enum err rx(void *sock, struct byte_array *data) in rx() argument
154 n = recvfrom(*(int *)sock, (char *)buffer, sizeof(buffer), 0, in rx()
236 c_r.sock = &sockfd; in main()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/initiator/src/
Dmain.cpp79 enum err tx(void *sock, struct byte_array *data) in tx() argument
94 send(*((int *)sock), pdu->getPDUPointer(), pdu->getPDULength(), 0); in tx()
105 enum err rx(void *sock, struct byte_array *data) in rx() argument
111 n = recv(*((int *)sock), (char *)buffer, MAXLINE, MSG_WAITALL); in rx()
154 c_i.sock = &sockfd; in main()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/initiator_client/src/
Dmain.cpp80 enum err tx(void *sock, struct byte_array *data) in tx() argument
95 send(*(int *)sock, pdu->getPDUPointer(), pdu->getPDULength(), 0); in tx()
106 enum err rx(void *sock, struct byte_array *data) in rx() argument
112 n = recv(*(int *)sock, (char *)buffer, MAXLINE, MSG_WAITALL); in rx()
164 c_i.sock = &sockfd; in main()
/uoscore-uedhoc-3.6.0/
DREADME.MD83 * @param sock a pointer used to identify the rx chanel,
87 enum err tx(void *sock, struct byte_array *data);
101 * @param sock a pointer used to identify the rx chanel,
105 enum err rx(void *sock, struct byte_array *data);