Click to open or copy the files for the Pop3 sample.
The Pop3 sample includes a server that sets up a listening socket on the Pop3 port, then loops, accepting incoming connections from clients. Whenever the server gets a connection, it sends a greeting message and starts a read operation on the newly connected socket.
This sample uses the following keywords:
_stricmp; _strnicmp; _vsnprintf; accept; acceptclients; allocandcopystring; bind; closeclient; closehandle; closesocket; commitmaildirectory; copymemory; createfile; createiocompletionport; createpop3context; createthread; debuglog; debugopenlogfile; deledispatch; deletefile; deletepop3context; deregistereventsource; doargs; doservicecontroller; failservicestart; fflush; findclose; findfirstfile; findnextfile; fopen; fprintf; freemaildirectory; getcurrentprocessid; getcurrentthreadid; getdebugkeyvalue; getlasterror; getlocaltime; getprofilestringa; getqueuedcompletionstatus; gets; getsysteminfo; helodispatch; htons; impersonateloggedonuser; initdebugsupport; initializeevents; initializethreads; lastdispatch; listdispatch; listen; loaddebugparameters; localalloc; localfree; lockmaildirectory; logevent; logonusera; multibytetowidechar; noopdispatch; notifyservicecontroller; openmailmessage; outputdebugstringa; passdispatch; pop3_failure; pop3_success; pop3crackcommand; pop3dispatch; pop3srvmain; printf; quitdispatch; readfile; readmaildirectory; readparameters; regclosekey; registereventsource; registerservicectrlhandler; regopenkey; regqueryvalueex; reportevent; reportserviceevent; retrdispatch; reverttoself; rsetdispatch; send; servicecontrolhandler; setservicestatus; setsockopt; shutdownevents; socket; sprintf; sscanf; startservicectrldispatcher; statdispatch; strcpy; strtok; testloop; text; transmitfile; unlockmaildirectory; updateservicestatus; userdispatch; va_arg; va_start; warning; wcscat; wcscpy; wcsicmp; wcslen; writefile; wsastartup