12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /*
- * $Id$
- *
- * Copyright (C) 2010 iptelorg GmbH
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
- /** tcp internal read functions.
- * @file tcp_read.h
- * @ingroup: core
- * Module: @ref core
- */
- /*
- * History:
- * --------
- * 2010-05-18 initial version (andrei)
- */
- #ifndef __tcp_read_h
- #define __tcp_read_h
- #include "tcp_conn.h"
- #define RD_CONN_SHORT_READ 1
- #define RD_CONN_EOF 2
- #define RD_CONN_REPEAT_READ 4 /* read should be repeated (more data)
- (used so far only by tls) */
- #define RD_CONN_FORCE_EOF 65536
- int tcp_read_data(int fd, struct tcp_connection *c,
- char* buf, int b_size, int* flags);
- #endif /*__tcp_read_h*/
- /* vi: set ts=4 sw=4 tw=79:ai:cindent: */
|