Multiprocessing -Programm, recv errno 9C++

Programme in C++. Entwicklerforum
Anonymous
 Multiprocessing -Programm, recv errno 9

Post by Anonymous »

In meinem Multiproccessing -Programm nach der Antwort des Clients, Server -Nebencode im Recv -Rückgaberastik (Errno 9 Ebaf) und ich verstehe nicht, wie ich den Socket fd.
Bitte, jemand kann mir helfen?

Code: Select all

    // caller process
if(getpid() == spid)
{

memset(&gate2, 0, sizeof(gate2) );

// delete zombies formation
while(proc < 58)
{

// Setting up server

l = sizeof(gate2);

sigaction(SIGPIPE, &v_act, NULL);

n_socket = accept(fd_start, (struct sockaddr *) &gate2, (socklen_t *)&l );

setsockopt(n_socket, SOL_SOCKET, SO_REUSEADDR | SO_KEEPALIVE | SO_REUSEPORT, &opt, sizeof(opt) );

fcntl(n_socket, F_SETFL, O_NONBLOCK);

sigaction(SIGPIPE, &v_act, NULL);
n = recv(n_socket, message, ( sizeof(char) * 60000 ) - 1 , MSG_NOSIGNAL);

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post