Hello Bytes,
I am writing a network program in c++ on Linux Debian x86.
I am using tcp sockets to communicate with other processors all very standard stuff.
However Im stuck at one hump, when I try to call send() on a socket where the other machine loss power of crashed. Send crashes my program, no return of -1 just crash with no output.
My Send Command:
Any thoughts?
I am writing a network program in c++ on Linux Debian x86.
I am using tcp sockets to communicate with other processors all very standard stuff.
However Im stuck at one hump, when I try to call send() on a socket where the other machine loss power of crashed. Send crashes my program, no return of -1 just crash with no output.
My Send Command:
Code:
if (send(vars->Nodes[n].sockfd, buf3, strlen(buf3), 0) == -1) {
vars->Nodes[n].ready = 0;
vars->Nodes[n].connected = 0;
perror("sendTimeCode");
}
Comment