Lines Matching defs:allocator
46 * * An @ref altcp_allocator_t allocator is an object that holds a pointer to an
47 * allocator object and a corresponding state (e.g. for TLS, the corresponding
50 * by passing a specific allocator.
60 * An altcp allocator is created by the application by combining an allocator
164 altcp_new_ip6(altcp_allocator_t *allocator)
166 return altcp_new_ip_type(allocator, IPADDR_TYPE_V6);
174 altcp_new(altcp_allocator_t *allocator)
176 return altcp_new_ip_type(allocator, IPADDR_TYPE_V4);
182 * allocator function.
184 * @param allocator allocator function and argument
189 altcp_new_ip_type(altcp_allocator_t *allocator, u8_t ip_type)
192 if (allocator == NULL) {
193 /* no allocator given, create a simple TCP connection */
196 if (allocator->alloc == NULL) {
197 /* illegal allocator */
200 conn = allocator->alloc(allocator->arg, ip_type);