diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-11 17:43:17 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-11 17:43:17 +0000 |
commit | 43e8ea4f5d54146d8b5fdf49d10fd3778dbdd3c0 (patch) | |
tree | 87d11c277f013ccf92290c99b88328c9ded047bd | |
parent | a485686bcd493e184aef35efde3b276ec933aec9 (diff) |
Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@540 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <sys/errno.h> #include <sys/ioctl.h> #include <sys/utsname.h> +#include <errno.h> #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; |