[NNTP] is this reponse for LIST correct?

prasanna.tananthanpillai at wipro.com prasanna.tananthanpillai at wipro.com
Wed Dec 8 02:11:43 PST 2004



/*LIST*/
                memset(buf,0x0,MAX);
                recv(newsd,buf,MAX,0);
                printf("\nClient says:%s",buf); /* buf has LIST in it*/
                memset(buf,0x0,100);
                sprintf(buf,"215/r/n");
                send(newsd,buf,strlen(buf),0);
                fd=fopen("grp.abc","r");/* i created a text file called
grp.abc and wrote a line as group1 1001 999 y*/
                fgets(buf,19,fd);
                sprintf(buf1,"\r\n");
                strcat(buf,buf1);
                printf("bufcat:%s",buf); /* to make sure CRLF is
appended */
                send(newsd,buf,strlen(buf),0);
                memset(buf,0x0,MAX);
                sprintf(buf,".\r\n"); /* Indicating the termination of
list of grps */
                send(newsd,buf,strlen(buf),0);
                printf("\nDot:%s",buf);
                memset(buf,0x0,MAX);
                recv(newsd,buf,MAX,0); /* Here i am suppose to get the
next command */
                /* but i am not getting it, the client just stands
still, expecting something else for response of LIST */
cheers :)

pras anna




Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin at wipro.com immediately
and destroy all copies of this message and any attachments.


More information about the ietf-nntp mailing list