Update setup/xapp-sm-connector/src/agent_connector.cc

Co-authored-by: Andrea Lacava <thecave003@gmail.com>
This commit is contained in:
JaykobJ 2023-12-01 08:50:22 +02:00 committed by GitHub
parent b65e2a4a1f
commit 54fee7c1d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;