1
0

Callback.h 415 B

1234567891011121314151617
  1. #ifndef HV_CALLBACK_HPP_
  2. #define HV_CALLBACK_HPP_
  3. #include <functional>
  4. #include "Buffer.h"
  5. #include "Channel.h"
  6. namespace hv {
  7. typedef std::function<void(const SocketChannelPtr&)> ConnectionCallback;
  8. typedef std::function<void(const SocketChannelPtr&, Buffer*)> MessageCallback;
  9. typedef std::function<void(const SocketChannelPtr&, Buffer*)> WriteCompleteCallback;
  10. }
  11. #endif // HV_CALLBACK_HPP_