X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Flimit-connect.cpp;h=4af597e899ec43bf8aecde71a65a1c651e3b1b36;hb=d1010e2fab0026b538230f67293bd5d4724c0913;hp=3b63759141c93628e21d1e006087024ed2800824;hpb=660f5e8b270182001d931f65fa03ff95819c3b92;p=yazpp-moved-to-github.git diff --git a/src/limit-connect.cpp b/src/limit-connect.cpp index 3b63759..4af597e 100644 --- a/src/limit-connect.cpp +++ b/src/limit-connect.cpp @@ -1,5 +1,5 @@ /* This file is part of the yazpp toolkit. - * Copyright (C) 1998-2009 Index Data and Mike Taylor + * Copyright (C) 1998-2011 Index Data and Mike Taylor * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -25,11 +25,15 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include #include +#include using namespace yazpp_1; @@ -41,7 +45,7 @@ struct LimitConnect::Peer { void add_connect(); char *m_peername; - Yaz_bw m_bw; + TimeStat m_bw; Peer *m_next; };