changeset 27 | 81a574d60c15 |
parent 10 | f19f44e2e863 |
child 29 | 7abf6146898e |
--- a/connection.c +++ b/connection.c @@ -15,7 +15,9 @@ int connection (char *ip, unsigned short port) { struct hostent *hs; + struct sockaddr_in sock; + int sockfd; memset (&sock, 0, sizeof (sock)); @@ -47,7 +49,9 @@ int main (int argc, char **argv) { char buffer[1024]; + int sockfd; + int num; if (argc != 3) {