Files
CppNet/cppnet/cppnet_socket.cpp
2021-04-07 18:45:00 +08:00

39 lines
639 B
C++

// Use of this source code is governed by a BSD 3-Clause License
// that can be found in the LICENSE file.
// Author: caozhiyi (caozhiyi5@gmail.com)
#include "include/cppnet_socket.h"
namespace cppnet {
CNSocket::CNSocket() {
}
CNSocket::~CNSocket() {
}
bool CNSocket::GetAddress(std::string& ip, uint16_t& port) {
return true;
}
bool CNSocket::Write(const char* src, uint32_t len) {
return true;
}
bool CNSocket::Close() {
return true;
}
uint64_t CNSocket::AddTimer(uint32_t interval, bool always) {
return 0;
}
void CNSocket::StopTimer(uint64_t timer_id) {
}
}