00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
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
00096
00097