Update setup/xapp-sm-connector/src/agent_connector.cc
Co-authored-by: Andrea Lacava <thecave003@gmail.com>
This commit is contained in:
parent
b65e2a4a1f
commit
54fee7c1d0
@ -126,7 +126,7 @@ int send_socket(char* buf, size_t payload_size, std::string dest_ip) {
|
|||||||
|
|
||||||
// const size_t max_size = 512;
|
// const size_t max_size = 512;
|
||||||
// char buf[max_size] = "Hello, Server!"; // store the data in a buffer
|
// char buf[max_size] = "Hello, Server!"; // store the data in a buffer
|
||||||
int sent_size = send(control_sckfd ,buf, payload_size, 0);
|
int sent_size = send(control_sckfd, buf, payload_size, 0);
|
||||||
|
|
||||||
if(sent_size < 0) { // the send returns a size of -1 in case of errors
|
if(sent_size < 0) { // the send returns a size of -1 in case of errors
|
||||||
std::cout << "ERROR: SEND to agent " << dest_ip << std::endl;
|
std::cout << "ERROR: SEND to agent " << dest_ip << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user