Home
last modified time | relevance | path

Searched refs:request (Results 1 - 4 of 4) sorted by relevance

/vendor/hisilicon/hispark_pegasus/demo/coap_demo/
H A Dcoap_client.c95 coap_pdu_t* request; in CoapClientSendMsg() local
122 /* Prepare the request */ in CoapClientSendMsg()
125 request = coap_new_pdu(session); in CoapClientSendMsg()
126 if (request == NULL) { in CoapClientSendMsg()
130 request->type = COAP_MESSAGE_CON; in CoapClientSendMsg()
131 request->tid = coap_new_message_id(session); in CoapClientSendMsg()
132 (void)CoapNewToken(request->tid, temp_token, DHCP_COAP_TOKEN_LEN); in CoapClientSendMsg()
133 if (coap_add_token(request, DHCP_COAP_TOKEN_LEN, temp_token) == 0) { in CoapClientSendMsg()
136 request->code = getMethod; in CoapClientSendMsg()
137 coap_add_option(request, COAP_OPTION_URI_PAT in CoapClientSendMsg()
[all...]
H A Dcoap_service.c31 coap_pdu_t *request, coap_binary_t *token, coap_string_t *query, coap_pdu_t *response) in HelloHandler()
45 if (coap_get_data(request, &len, &data)) { in HelloHandler()
30 HelloHandler(coap_context_t *ctx, struct coap_resource_t *resource, coap_session_t *session, coap_pdu_t *request, coap_binary_t *token, coap_string_t *query, coap_pdu_t *response) HelloHandler() argument
/vendor/hisilicon/hispark_pegasus/demo/oledplayer_demo/play/
H A Dstream_player.c72 uint32_t request = lwip_htonl(frameId); // to big endian in PlayStream() local
73 ssize_t retval = lwip_send(sockfd, &request, sizeof(request), 0); in PlayStream()
/vendor/hisilicon/hispark_pegasus/demo/oledplayer_demo/
H A Dbin2stream.py38 addr = self.request.getpeername()
46 # recv request from client
47 frameId = int.from_bytes(req, 'big') # bytes request
67 print('handle request from', addr, 'done!')

Completed in 2 milliseconds