Re: Simple email pop3/smtp source - I get a bind error
- From: "Dave Lowther" <davel@xxxxxxxxx>
- Date: Mon, 12 May 2008 06:45:30 +0100
"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
If you are writing a client, you should not be binding to the server port
number.
You only need to use the server port number when your client calls connect.
HTH
Dave.
.
- References:
- Prev by Date: Simple email pop3/smtp source - I get a bind error
- Next by Date: Re: Slow registration of group name NetBIOS
- Previous by thread: 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
|
Loading