Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 10 of 10) sorted by relevance

/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/responder/src/
Dmain.c59 char buffer[MAXLINE]; in tx() local
64 r = coap_ack_init(&cp_ack, &cp_req, buffer, sizeof(buffer), in tx()
83 PRINT_ARRAY("Sending CoAP message", buffer, cp_ack.offset); in tx()
85 r = sendto(*((int *)sock), buffer, cp_ack.offset, 0, in tx()
99 char buffer[MAXLINE]; in rx() local
108 memset(&buffer, 0, sizeof(buffer)); in rx()
111 n = recvfrom(*((int *)sock), (char *)buffer, sizeof(buffer), 0, in rx()
117 PRINT_ARRAY("received data", buffer, n); in rx()
119 TRY_EXPECT(coap_packet_parse(&cp_req, buffer, n, NULL, 0), 0); in rx()
/uoscore-uedhoc-3.6.0/samples/linux_oscore/server/src/
Dmain.cpp78 char buffer[MAXLINE]; in main() local
139 n = recvfrom(sockfd, (char *)buffer, sizeof(buffer), 0, in main()
144 r = oscore2coap((uint8_t *)buffer, n, coap_rx_buf, in main()
160 recvPDU = new CoapPDU((uint8_t *)buffer, n); in main()
192 recvPDU = new CoapPDU((uint8_t *)buffer, n); in main()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/responder_server/src/
Dmain.cpp35 char buffer[MAXLINE]; variable
154 n = recvfrom(*(int *)sock, (char *)buffer, sizeof(buffer), 0, in rx()
160 rxPDU = new CoapPDU((uint8_t *)buffer, n); in rx()
308 char buffer[MAXLINE]; in main() local
338 n = recvfrom(sockfd, (char *)buffer, sizeof(buffer), 0, in main()
344 enum err r = oscore2coap((uint8_t *)buffer, n, coap_rx_buf, in main()
360 recvPDU = new CoapPDU((uint8_t *)buffer, n); in main()
392 recvPDU = new CoapPDU((uint8_t *)buffer, n); in main()
/uoscore-uedhoc-3.6.0/samples/linux_oscore/client/src/
Dmain.cpp38 char buffer[MAXLINE]; in main() local
136 n = recvfrom(sockfd, (char *)buffer, MAXLINE, MSG_WAITALL, in main()
141 r = oscore2coap((uint8_t *)buffer, n, coap_rx_buf, in main()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/initiator_client/src/
Dmain.cpp109 char buffer[MAXLINE]; in rx() local
112 n = recv(*(int *)sock, (char *)buffer, MAXLINE, MSG_WAITALL); in rx()
117 recvPDU = new CoapPDU((uint8_t *)buffer, n); in rx()
236 char buffer[MAXLINE]; in main() local
306 n = recv(sockfd, (char *)buffer, MAXLINE, MSG_WAITALL); in main()
310 r = oscore2coap((uint8_t *)buffer, n, coap_rx_buf, in main()
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/initiator/src/
Dmain.c96 char buffer[MAXLINE]; in rx() local
102 n = recv(*((int *)sock), (char *)buffer, MAXLINE, MSG_WAITALL); in rx()
107 PRINT_ARRAY("received data", buffer, n); in rx()
109 TRY_EXPECT(coap_packet_parse(&reply, buffer, n, NULL, 0), 0); in rx()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/responder/src/
Dmain.cpp34 char buffer[MAXLINE]; variable
132 n = recvfrom(*((int *)sock), (char *)buffer, sizeof(buffer), 0, in rx()
138 rxPDU = new CoapPDU((uint8_t *)buffer, n); in rx()
/uoscore-uedhoc-3.6.0/src/oscore/
Doscore_interactions.c33 static void print_interaction_field(const char *name, uint8_t *buffer, in print_interaction_field() argument
37 if (NULL != buffer) { in print_interaction_field()
39 PRINTF("%02x ", buffer[index]); in print_interaction_field()
Doption.c29 static enum err buffer_append(uint8_t *buffer, uint32_t *current_size, in buffer_append() argument
34 &buffer[*current_size]; //pointer to current end of the content in buffer_append()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/initiator/src/
Dmain.cpp108 char buffer[MAXLINE]; in rx() local
111 n = recv(*((int *)sock), (char *)buffer, MAXLINE, MSG_WAITALL); in rx()
116 recvPDU = new CoapPDU((uint8_t *)buffer, n); in rx()