socket error(client)

view story

http://ubuntuforums.org – I'm trying to create a client socket to send a http request to a server, but an error is occurring in the function connect, in turn primeir returned this error: "connect: Socket operating on non-socket 'and' connect: no such file or directory 'I did not find anything wrong in my code so I went looking two examples of client sockets, and they tanbem returned this error. my code is this: Code: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> # (Hardware)