EmbLogic's Blog

Implemented FTP SERVER USING SOCKETS

60    {
61       if(database_size==3)
62          goto label3;
63       i=i+43;
64       goto  label;
65    }
66    read(connect_fd,password,10);
67    j=11;
68 label1:
69    lseek(fd1,j,SEEK_SET);
70    database_size1++;
71    ret=read(fd1,m_password,10);
72    if(ret<0)
73       perror(“reading file\n”);
74    if(!(strcmp(password,m_password)))
75    {
76       flag_password=0;
77    lseek(fd1,j+11,SEEK_SET);
78    read(fd1,path,20);
79    }
80    else
81    {
82       if(database_size1==3)
83          goto label3;
“ftp_server.c,v” 180L, 3961C                                                        68,4          37%

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>