Lines Matching full:protocol

38 /* The global TLS protocol options */
42 /* The global array of available protocol families */
49 #define IS_SOCKET_PROTO_TLS(sock) (((sock)->protocol == PROTOCOL_TLS) || \
50 ((sock)->protocol == PROTOCOL_DTLS))
100 * This function will register TLS protocol to the global TLS protocol.
102 * @param pt TLS protocol object
104 * @return 0: TLS protocol object register success
117 * This function will register protocol family to the global array of protocol families.
119 * @param pf protocol family object
121 * @return 0: protocol family object register success
122 * -1: the global array of available protocol families is full
132 /* check protocol family is already registered */ in sal_proto_family_register()
139 LOG_E("%s protocol family is already registered!", pf->family); in sal_proto_family_register()
144 /* find an empty protocol family entry */ in sal_proto_family_register()
147 /* can't find an empty protocol family entry */ in sal_proto_family_register()
172 * This function removes a previously registered protocol family object.
174 * @param pf protocol family object
176 * @return >=0 : unregister protocol family index
199 * This function will judge whether protocol family is registered
201 * @param family protocol family number
203 * @return 1: protocol family is registered
204 * 0: protocol family is not registered
224 * This function will get protocol family object by family number.
226 * @param family protocol family number
228 * @return protocol family object
300 * This function will get protocol family structure by family type
302 * @param family protocol family
304 * @return protocol family structure address
317 /* compare the secondary protocol families when primary protocol families find failed */ in get_proto_family()
332 * @param family protocol family
334 * @param protocol transfer Protocol
340 * -3 : get protocol family object failed
343 static int socket_init(int family, int type, int protocol, struct sal_socket **res) in socket_init() argument
361 sock->protocol = protocol; in socket_init()
363 /* get socket protocol family object */ in socket_init()
370 if (pf->create(sock, type, protocol) != 0) in socket_init()
494 retval = socket_init(sock->domain, sock->type, sock->protocol, &new_sock); in sal_accept()
791 int sal_socket(int domain, int type, int protocol) in sal_socket() argument
805 retval = socket_init(domain, type, protocol, &sock); in sal_socket()
808 LOG_E("SAL socket protocol family input failed, return error %d.", retval); in sal_socket()
817 proto_socket = sock->ops->socket(domain, type, protocol); in sal_socket()