• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • Directories
  • File List
  • Globals

tcp_ev.h

00001 /* 
00002  * $Id$
00003  * 
00004  * Copyright (C) 2009 iptelorg GmbH
00005  *
00006  * Permission to use, copy, modify, and distribute this software for any
00007  * purpose with or without fee is hereby granted, provided that the above
00008  * copyright notice and this permission notice appear in all copies.
00009  *
00010  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
00011  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
00012  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
00013  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00014  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00015  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
00016  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00017  */
00018 /*
00019  * tcp_ev.h - tcp events
00020  */
00021 /*
00022  * History:
00023  * --------
00024  *  2009-04-09  initial version (andrei)
00025 */
00026 
00027 #ifndef __tcp_ev_h
00028 #define __tcp_ev_h
00029 
00030 #include <errno.h>
00031 #include <string.h>
00032 
00033 #include "ip_addr.h"
00034 
00035 
00052 #define TCP_EV_CONNECT_RST(err, lip, lport, dst, proto) \
00053         LOG(L_ERR, "connect %s failed (RST) %s\n", \
00054                         su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
00055 
00057 #define TCP_EV_CONNECT_UNREACHABLE(err, lip, lport, dst, proto) \
00058         LOG(L_ERR, "connect %s failed (unreachable) %s\n", \
00059                         su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
00060 
00062 #define TCP_EV_CONNECT_TIMEOUT(err, lip, lport, dst, proto) \
00063         LOG(L_ERR, "connect %s failed (timeout) %s\n", \
00064                         su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
00065 
00067 #define TCP_EV_CONNECT_NO_MORE_PORTS(err, lip, lport, dst, proto) \
00068         LOG(L_ERR, "connect %s failed (no more ports) %s\n", \
00069                         su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
00070 
00072 #define TCP_EV_CONNECT_ERR(err, lip, lport, dst, proto) \
00073         LOG(L_ERR, "connect %s failed %s\n", \
00074                         su2a(dst, sizeof(*(dst))), (err)?strerror(err):"")
00075 
00076 
00083 #define TCP_EV_SEND_TIMEOUT(err, rcv)
00084 
00087 #define TCP_EV_SENDQ_FULL(err, rcv)
00088 
00090 #define TCP_EV_IDLE_CONN_CLOSED(err, rcv)
00091 
00092 
00093 
00094 
00095 #endif /*__tcp_ev_h*/
00096 
00097 /* vi: set ts=4 sw=4 tw=79:ai:cindent: */

Generated on Tue May 22 2012 13:10:16 for SIP Router by  doxygen 1.7.1