You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
392 B

#include <winsock2.h>
class CPOP
{
protected:
SOCKET sock;
char *GetSockData();
void SocketError(char *format, ...);
public:
CPOP(){ sock = NULL; }
int Setup();
int Connect(const char *szServerName);
int Login(const char *szUsername, const char *szPassword);
int NumberOfMessages();
int Quit();
~CPOP(){
if (sock) {
Quit();
}
}
};