|
|
|
@ -31,7 +31,8 @@ namespace sinks {
|
|
|
|
struct tcp_sink_config {
|
|
|
|
struct tcp_sink_config {
|
|
|
|
std::string server_host;
|
|
|
|
std::string server_host;
|
|
|
|
int server_port;
|
|
|
|
int server_port;
|
|
|
|
int timeout_ms = 0; // The timeout for all 3 major socket operations that is connect, send, and recv
|
|
|
|
int timeout_ms =
|
|
|
|
|
|
|
|
0; // The timeout for all 3 major socket operations that is connect, send, and recv
|
|
|
|
bool lazy_connect = false; // if true connect on first log call instead of on construction
|
|
|
|
bool lazy_connect = false; // if true connect on first log call instead of on construction
|
|
|
|
|
|
|
|
|
|
|
|
tcp_sink_config(std::string host, int port)
|
|
|
|
tcp_sink_config(std::string host, int port)
|
|
|
|
|