Lines Matching defs:proto

519 coap_make_session(coap_proto_t proto, coap_session_type_t type,
532 session->proto = proto;
556 if (proto == COAP_PROTO_DTLS) {
587 if (COAP_PROTO_NOT_RELIABLE(session->proto))
648 session->proto == COAP_PROTO_DTLS ?
712 if (COAP_PROTO_NOT_RELIABLE(session->proto))
791 if (COAP_PROTO_NOT_RELIABLE(session->proto)) {
807 if (pdu->type == COAP_MESSAGE_CON && COAP_PROTO_NOT_RELIABLE(session->proto)) {
825 assert(COAP_PROTO_RELIABLE(session->proto));
845 || coap_pdu_encode_header(pdu, session->proto) == 0
875 if (COAP_PROTO_NOT_RELIABLE(session->proto)) {
904 if (session->proto==COAP_PROTO_DTLS) {
915 if (q->pdu->type == COAP_MESSAGE_CON && COAP_PROTO_NOT_RELIABLE(session->proto)) {
927 if (q->pdu->type == COAP_MESSAGE_CON && COAP_PROTO_NOT_RELIABLE(session->proto)) {
931 if (COAP_PROTO_NOT_RELIABLE(session->proto)) {
1031 if (session->proto == COAP_PROTO_UDP)
1079 if (COAP_PROTO_RELIABLE(session->proto)) {
1099 coap_make_addr_hash(coap_addr_hash_t *addr_hash, coap_proto_t proto,
1104 addr_hash->proto = proto;
1123 coap_make_addr_hash(&addr_hash, endpoint->proto, &packet->addr_info);
1183 if (endpoint->proto == COAP_PROTO_DTLS) {
1224 session = coap_make_session(endpoint->proto, COAP_SESSION_TYPE_SERVER,
1232 if (endpoint->proto == COAP_PROTO_UDP)
1234 else if (endpoint->proto == COAP_PROTO_DTLS) {
1262 coap_proto_t proto) {
1268 switch (proto) {
1313 session = coap_make_session(proto, COAP_SESSION_TYPE_CLIENT, NULL,
1320 memcpy(&session->sock.lfunc, coap_layers_coap[proto],
1323 if (COAP_PROTO_NOT_RELIABLE(proto)) {
1330 if (COAP_PROTO_NOT_RELIABLE(s->proto) &&
1344 } else if (COAP_PROTO_RELIABLE(proto)) {
1383 if (COAP_PROTO_NOT_RELIABLE(session->proto)) {
1387 if (COAP_PROTO_RELIABLE(session->proto)) {
1407 if (COAP_PROTO_NOT_RELIABLE(session->proto))
1410 if (COAP_PROTO_RELIABLE(session->proto))
1420 coap_proto_t proto) {
1422 proto);
1435 coap_proto_t proto, const char *identity,
1453 proto, &setup_data);
1460 coap_proto_t proto,
1463 server, proto);
1630 coap_proto_t proto,
1645 session = coap_session_create_client(ctx, local_if, server, proto);
1670 session = coap_make_session(ep->proto, COAP_SESSION_TYPE_SERVER,
1679 coap_make_addr_hash(&session->addr_hash, session->proto, &session->addr_info);
1727 if (COAP_PROTO_NOT_RELIABLE(session->proto))
1769 return session->proto;
1819 coap_proto_name(coap_proto_t proto) {
1820 switch (proto) {
1844 coap_new_endpoint(coap_context_t *context, const coap_address_t *listen_addr, coap_proto_t proto) {
1849 assert(proto != COAP_PROTO_NONE);
1851 if (proto == COAP_PROTO_DTLS && !coap_dtls_is_supported()) {
1856 if (proto == COAP_PROTO_TLS && !coap_tls_is_supported()) {
1861 if (proto == COAP_PROTO_TCP && !coap_tcp_is_supported()) {
1866 if (proto == COAP_PROTO_WS && !coap_ws_is_supported()) {
1871 if (proto == COAP_PROTO_WSS && !coap_wss_is_supported()) {
1876 if (proto == COAP_PROTO_DTLS || proto == COAP_PROTO_TLS ||
1877 proto == COAP_PROTO_WSS) {
1893 ep->proto = proto;
1895 assert(proto < COAP_PROTO_LAST);
1896 memcpy(&ep->sock.lfunc, coap_layers_coap[proto], sizeof(ep->sock.lfunc));
1898 if (COAP_PROTO_NOT_RELIABLE(proto)) {
1905 } else if (COAP_PROTO_RELIABLE(proto)) {
1921 coap_log_debug("created %s endpoint %s\n", coap_proto_name(ep->proto),
2038 strcpy(p, coap_proto_name(session->proto));
2052 if (endpoint->proto == COAP_PROTO_UDP) {
2055 } else if (endpoint->proto == COAP_PROTO_DTLS) {