Re: Simple email pop3/smtp source - I get a bind error
- From: "Volodymyr M. Shcherbyna" <v_scherbina@xxxxxxxxxxxxxxx>
- Date: Mon, 12 May 2008 10:31:27 +0200
As was already pointed out, you don't have to bind, you have to connect to
e-mail server. Look at inmplementation of client at
http://msmvps.com/blogs/v_scherbina/pages/winsock-faq.aspx it will give you
a general hints on how to make a simple tcp client.
--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Test" <test@.nil.invalid.com> wrote in message
news:vq4e24hfbn35ovkqkt0bvu955dm5gobbs1@xxxxxxxxxx
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:
- References:
- Prev by Date: Re: Slow registration of group name NetBIOS
- Next by Date: RE: emulation of gethostbyaddr to resolve to NetBIOS name
- Previous by thread: Re: Simple email pop3/smtp source - I get a bind error
- Next by thread: Re: Simple email pop3/smtp source - I get a bind error
- Index(es):
Relevant Pages
|
|