#include <net_channel.h>
Definition at line 49 of file net_channel.h.
◆ NetChannel() [1/2]
| resdb::NetChannel::NetChannel |
( |
const std::string & |
ip, |
|
|
int |
port |
|
) |
| |
◆ NetChannel() [2/2]
| resdb::NetChannel::NetChannel |
( |
std::unique_ptr< Socket > |
socket, |
|
|
bool |
connected = false |
|
) |
| |
◆ ~NetChannel()
| virtual resdb::NetChannel::~NetChannel |
( |
| ) |
|
|
virtualdefault |
◆ Close()
| void resdb::NetChannel::Close |
( |
| ) |
|
◆ Connect()
| int resdb::NetChannel::Connect |
( |
| ) |
|
|
protected |
◆ GetRawMessageString()
| std::string resdb::NetChannel::GetRawMessageString |
( |
const google::protobuf::Message & |
message, |
|
|
SignatureVerifier * |
verifier = nullptr |
|
) |
| |
|
static |
◆ IsLongConnection()
| void resdb::NetChannel::IsLongConnection |
( |
bool |
long_connect_tion | ) |
|
◆ Recv()
| int resdb::NetChannel::Recv |
( |
std::string * |
data | ) |
|
|
protected |
◆ RecvRawMessage()
| int resdb::NetChannel::RecvRawMessage |
( |
google::protobuf::Message * |
message | ) |
|
|
virtual |
◆ RecvRawMessageData()
| int resdb::NetChannel::RecvRawMessageData |
( |
std::string * |
message_str | ) |
|
|
virtual |
◆ RecvRawMessageStr()
| int resdb::NetChannel::RecvRawMessageStr |
( |
std::string * |
message | ) |
|
|
virtual |
◆ Send()
| int resdb::NetChannel::Send |
( |
const std::string & |
data | ) |
|
|
protected |
◆ SendDataInternal()
| int resdb::NetChannel::SendDataInternal |
( |
const std::string & |
data | ) |
|
|
protected |
◆ SendFromKeepAlive()
| int resdb::NetChannel::SendFromKeepAlive |
( |
const std::string & |
data | ) |
|
|
protected |
◆ SendRawMessage()
| int resdb::NetChannel::SendRawMessage |
( |
const google::protobuf::Message & |
message | ) |
|
|
virtual |
◆ SendRawMessageData()
| int resdb::NetChannel::SendRawMessageData |
( |
const std::string & |
message_str | ) |
|
|
virtual |
◆ SendRequest()
| int resdb::NetChannel::SendRequest |
( |
const google::protobuf::Message & |
message, |
|
|
Request::Type |
cmd, |
|
|
bool |
need_response = false |
|
) |
| |
|
virtual |
◆ SetAsyncSend()
| void resdb::NetChannel::SetAsyncSend |
( |
bool |
is_async_send | ) |
|
◆ SetDestReplicaInfo()
| void resdb::NetChannel::SetDestReplicaInfo |
( |
const ReplicaInfo & |
replica | ) |
|
◆ SetRecvTimeout()
| void resdb::NetChannel::SetRecvTimeout |
( |
int |
microseconds | ) |
|
◆ SetSignatureVerifier()
◆ SetSocket()
| void resdb::NetChannel::SetSocket |
( |
std::unique_ptr< Socket > |
socket | ) |
|
◆ connected_
| bool resdb::NetChannel::connected_ = false |
|
protected |
◆ ip_
| std::string resdb::NetChannel::ip_ |
|
protected |
◆ is_async_send_
| bool resdb::NetChannel::is_async_send_ = false |
|
protected |
◆ long_connect_tion_
| bool resdb::NetChannel::long_connect_tion_ = false |
|
protected |
◆ long_connecting_
| bool resdb::NetChannel::long_connecting_ = false |
|
protected |
◆ max_retry_time_
| int resdb::NetChannel::max_retry_time_ = 3 |
|
protected |
◆ port_
| int resdb::NetChannel::port_ |
|
protected |
◆ read_timeouts_
| int resdb::NetChannel::read_timeouts_ = 1000000 |
|
protected |
◆ socket_
| std::unique_ptr<Socket> resdb::NetChannel::socket_ |
|
protected |
◆ verifier_