14b7a333eSShuo Chen// Muduo - A reactor-based C++ network library for Linux 24b7a333eSShuo Chen// Copyright (c) 2010, Shuo Chen. All rights reserved. 34b7a333eSShuo Chen// http://code.google.com/p/muduo/ 44b7a333eSShuo Chen// 54b7a333eSShuo Chen// Redistribution and use in source and binary forms, with or without 64b7a333eSShuo Chen// modification, are permitted provided that the following conditions 74b7a333eSShuo Chen// are met: 84b7a333eSShuo Chen// 94b7a333eSShuo Chen// * Redistributions of source code must retain the above copyright 104b7a333eSShuo Chen// notice, this list of conditions and the following disclaimer. 114b7a333eSShuo Chen// * Redistributions in binary form must reproduce the above copyright 124b7a333eSShuo Chen// notice, this list of conditions and the following disclaimer in the 134b7a333eSShuo Chen// documentation and/or other materials provided with the distribution. 144b7a333eSShuo Chen// * The name of the author may not be used to endorse or promote 154b7a333eSShuo Chen// products derived from this software without specific prior written 164b7a333eSShuo Chen// permission. 174b7a333eSShuo Chen// 184b7a333eSShuo Chen// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 194b7a333eSShuo Chen// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 204b7a333eSShuo Chen// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 214b7a333eSShuo Chen// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 224b7a333eSShuo Chen// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 234b7a333eSShuo Chen// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 244b7a333eSShuo Chen// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 254b7a333eSShuo Chen// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 264b7a333eSShuo Chen// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 274b7a333eSShuo Chen// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 284b7a333eSShuo Chen// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 294b7a333eSShuo Chen 30