socket_data.cpp

Go to the documentation of this file.
00001 #ifndef SOCKET_DATA_IMPLEMENTATION_FILE
00002 #define SOCKET_DATA_IMPLEMENTATION_FILE
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : socket_data                                                       *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 1991-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "raw_socket.h"
00019 #include "socket_data.h"
00020 
00021 istring socket_data::text_form() const
00022 {
00023   return istring(istring::SPRINTF, "socket=%d, type=%s, "
00024       "send_pend=%d, recv_pend=%d, interests=%s, conn_pending=%s",
00025       _socket, _is_server? "server":"client", _partially_sent.length(),
00026       _partially_received.length(),
00027       raw_socket::interest_name(_registered_interests).s(),
00028       _connection_pending? "true":"false");
00029 }
00030 
00031 
00032 #endif //SOCKET_DATA_IMPLEMENTATION_FILE
00033 

Generated on Fri Nov 28 04:28:57 2008 for HOOPLE Libraries by  doxygen 1.5.1