From 43e8ea4f5d54146d8b5fdf49d10fd3778dbdd3c0 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Apr 2004 17:43:17 +0000 Subject: Fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@540 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index 6e82bed9b..7a92afcd6 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "inspircd.h" #include "modules.h" @@ -128,7 +129,7 @@ bool connection::SendPacket(char *message, char* host, int port, long ourkey) // returns false if the packet could not be sent (e.g. target host down) if (sendto(this->fd,&p,sizeof(p),0,(sockaddr*)&host_address,sizeof(host_address))<0) { - log(DEBUG,"sendto() failed for Connection::SendPacket() with a packet of size %d",sizeof(p)); + log(DEBUG,"sendto() failed for Connection::SendPacket() with a packet of size %d: %s",sizeof(p),strerror(errno)); return false; } this->state = STATE_WAIT_FOR_ACK; -- cgit v1.2.3