salut,
I'm currently working on a msnp class. Since version 11 of the msn protocol, additional information is send after authorization. this is the source of my problem.
Because fgets breaks after \r\n not the whole reply is returned. How the hell should I catch the rest of the reply? I've tried using a loop with a timeout condition, but that didn't do the job. feof can't be used with socket streams, it returns the data but after exceeding max exc time (30 seconds) thus returning a fatal error.
part of the reply send by server:
MIME-Version: 1.0\r\n
Content-Type: text/x-msmsgsprofile; charset=UTF-8\r\n
LoginTime: 1115349389\r\n
EmailEnabled: 1\r\n
MemberIdHigh: 83936\r\n
MemberIdLow: 1113138176\r\n
lang_preference: 1036\r\n
preferredEmail: \r\n
country: CA\r\n
PostalCode: \r\n
thx