i want to create a socket and i used the code socket_create (AF_INET, SOCK_STREAM, getprotobyname("TCP")); but it shows error undefined symbol. pls help me. thanks
I guess you are on windows. The constants and system calls used by the the function are not defined in windows. either use linux as the OS, or use fsockopen (not as advanced) but will work.
using fsockopen u will be able to create only client sockets not server sockets.