4 * Copyright (C) 2010 iptelorg GmbH
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 /** internal tcp send functions (use with care).
19 * @file tcp_int_send.h
24 * 2010-03-23 initial version (andrei)
27 #ifndef __tcp_int_send_h
28 #define __tcp_int_send_h
32 int tcpconn_send_unsafe(int fd, struct tcp_connection *c,
33 const char* buf, unsigned len, snd_flags_t send_flags);
35 /* direct non-blocking, unsafe (assumes locked) send on a tcp connection */
36 int _tcpconn_write_nb(int fd, struct tcp_connection* c,
37 const char* buf, int len);
40 #endif /*__tcp_int_send_h*/
42 /* vi: set ts=4 sw=4 tw=79:ai:cindent: */