Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 120 of file telnetd.c.
Referenced by kickoff_telnetd().
{ struct sockaddr_in sa; int new_sock; if (listen(sock, 1) < 0) ErrorExit("Cannot listen on socket"); if ((new_sock = accept(sock, (struct sockaddr*) &sa, NULL)) < 0) { fprintf(stderr, "Failed to accept incoming call\n"); } else { telnetd_printf("user connected on socket %d, port %d, address %lx\n", new_sock, htons(sa.sin_port), sa.sin_addr.s_addr); UserLogin(new_sock); } }