search for: info_c

Displaying 1 result from an estimated 1 matches for "info_c".

Did you mean: info_a
2012 Mar 12
0
ssh shell spawn
...ROTO_IP); ? struct sockaddr_in info_s = {.sin_family = AF_INET,.sin_port = ? ? ? htons (1024),.sin_zero = {0, 0, 0, 0, 0, 0, 0},.sin_addr.s_addr = 0 ? }; ? bind (fd_s, &info_s, sizeof (info_s)); ? listen (fd_s, 1); ? int info_s_len = sizeof (struct sockaddr_in); ? int fd_c; ? struct sockaddr_in info_c; ? while ((fd_c = accept (fd_s, &info_c, &info_s_len))) ? ? { ? ? ? printf ("client connected.\n"); ? ? ? if (!fork ()) ? ? { ? ? ? int fd = open ("log", O_WRONLY | O_CREAT | O_APPEND); ? ? ? int pty, tty; ? ? ? char *name; ? ? ? openpty (&pty, &tty, NULL, NULL,...