1 | /* |
1 | /* |
2 | * Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu> |
2 | * Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu> |
|
|
3 | * Copyright (c) 2008 Marc Alexander Lehmann <libev@schmorp.de> |
3 | * All rights reserved. |
4 | * All rights reserved. |
4 | * |
5 | * |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
7 | * modification, are permitted provided that the following conditions |
7 | * are met: |
8 | * are met: |
… | |
… | |
179 | int evbuffer_write(struct evbuffer *, int); |
180 | int evbuffer_write(struct evbuffer *, int); |
180 | int evbuffer_read(struct evbuffer *, int, int); |
181 | int evbuffer_read(struct evbuffer *, int, int); |
181 | u_char *evbuffer_find(struct evbuffer *, const u_char *, size_t); |
182 | u_char *evbuffer_find(struct evbuffer *, const u_char *, size_t); |
182 | void evbuffer_setcb(struct evbuffer *, void (*)(struct evbuffer *, size_t, size_t, void *), void *); |
183 | void evbuffer_setcb(struct evbuffer *, void (*)(struct evbuffer *, size_t, size_t, void *), void *); |
183 | |
184 | |
184 | /* |
185 | /* |
185 | * Marshaling tagged data - We assume that all tags are inserted in their |
186 | * Marshaling tagged data - We assume that all tags are inserted in their |
186 | * numeric order - so that unknown tags will always be higher than the |
187 | * numeric order - so that unknown tags will always be higher than the |
187 | * known ones - and we can just ignore the end of an event buffer. |
188 | * known ones - and we can just ignore the end of an event buffer. |
188 | */ |
189 | */ |
189 | |
190 | |