Re: [Boost-users] Socket and iostream

-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Jakub Stachowski Sent: Wednesday, November 08, 2006 2:22 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Socket and iostream
nothing seems to be written nor readen to/from the socket except for the first getline. What am I doing wrong here ?
Try flushing the stream after each write.
[Nat] I wondered about that -- but doesn't std::endl implicitly flush?

On 11/8/06, Nat Goodspeed
Try flushing the stream after each write.
[Nat] I wondered about that -- but doesn't std::endl implicitly flush?
It sure does. The problem may be that the SMTP server expects \r\n for end-of-line, not just \n. Thats how the RFC specifies the protocol. -- Caleb Epstein
participants (3)
-
Caleb Epstein
-
Ivan LAURETTE
-
Nat Goodspeed