Callbacks.h revision 42bf2220
142bf2220SShuo Chen// excerpts from http://code.google.com/p/muduo/ 242bf2220SShuo Chen// 342bf2220SShuo Chen// Use of this source code is governed by a BSD-style license 442bf2220SShuo Chen// that can be found in the License file. 542bf2220SShuo Chen// 642bf2220SShuo Chen// Author: Shuo Chen (chenshuo at chenshuo dot com) 742bf2220SShuo Chen 842bf2220SShuo Chen#ifndef MUDUO_NET_CALLBACKS_H 942bf2220SShuo Chen#define MUDUO_NET_CALLBACKS_H 1042bf2220SShuo Chen 1142bf2220SShuo Chen#include <boost/function.hpp> 1242bf2220SShuo Chen#include <boost/shared_ptr.hpp> 1342bf2220SShuo Chen 1442bf2220SShuo Chen#include "datetime/Timestamp.h" 1542bf2220SShuo Chen 1642bf2220SShuo Chennamespace muduo 1742bf2220SShuo Chen{ 1842bf2220SShuo Chen 1942bf2220SShuo Chen// All client visible callbacks go here. 2042bf2220SShuo Chen 2142bf2220SShuo Chentypedef boost::function<void()> TimerCallback; 2242bf2220SShuo Chen 2342bf2220SShuo Chen} 2442bf2220SShuo Chen 2542bf2220SShuo Chen#endif // MUDUO_NET_CALLBACKS_H 26