Simple email pop3/smtp source - I get a bind error
- From: Test <test@.nil.invalid.com>
- Date: Sun, 11 May 2008 18:51:26 +0300
I need to check the headers fo my email using smtp/pop3
When bind'ing to a mail server I get bind error:
....
h=gethostbyname("mail.whatever.fi");
service.sin_addr.s_addr=inet_addr(inet_ntoa(*((struct in_addr *)h->h_addr)));
service.sin_port=htons(110);
if (bind(mylistens, (SOCKADDR*)&service, sizeof(service)) == SOCKET_ERROR)
{
blah blah error here
....
I must be doing something wrong. Other FTP/TCP connection go well.
If someone has a very simple C source SMTP/POP3 receive client example I'd
appreciate it.
.
- Follow-Ups:
- Re: Simple email pop3/smtp source - I get a bind error
- From: Volodymyr M. Shcherbyna
- Re: Simple email pop3/smtp source - I get a bind error
- From: Dave Lowther
- Re: Simple email pop3/smtp source - I get a bind error
- Prev by Date: Re: Half the speed migrating from Windows 2000 to Windows 2003
- Next by Date: Simple email pop3/smtp source - I get a bind error
- Previous by thread: TCP long pause
- Next by thread: Re: Simple email pop3/smtp source - I get a bind error
- Index(es):
Relevant Pages
|