I'm creating an application for POP3 mail retrive and IMAP server in C. Initially I'e created the application in two different workspaces(different .exe) and now I need to merge both of them so that the application can work as to provide the pop3 mail clients-mails avialable for the client as IMAP by storing it on the local hard drive and the IMAP server part make it avialable for the client to get using outlook from anywhere.
so I need to create a class structure for it, for the warious functions I'e used are as-
POP3 :- Create socket,connect it to server via port 110, aythincatate state, post authencate command-responce, logout;
IMAP:- create a socket, connect it with local host and make it avialable to listen for the in coming requests for port 143 and accept the request, go for a pre authencate thread and if clears this satge, then go for command responce state, If any breakup exists in between the communication then destroy the thread and release the socket.
thanks
anilF