on my lan 192.168.0.1 is running a webserver so when i wrote a simple socket application like
char buffer[32];
SOCKET sock=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
struct sockaddr_in * address= new (struct sockaddr_in);
address->sin_family=AF_INET;
address->sin_addr.s_addr=inet_addr("192.168.0.1");
address->sin_port=htons(80);
memset(address->sin_zero,'\0',8);
printf("connect %d \n",connect(sock,(struct sockaddr *)address,sizeof(*address)));
printf("%d ",send(sock,"GET /index.htm",14,0));
recv(sock,buffer,32,0);
till send everything is working fine but why i am not able to retreive the index.htm page back .
i have tried the same program on my linux box too but to no avail .what is the prob am i missing something ...