× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




Thanks everyone for the help. It seems that if I do a receive I get a return value of '0' but when I do a rdline I get a '-1'

When I attempt to 'eval errno' I get the message "Type Error Occurred."

As for knowing what to read, I know the record formats and can, with each record (xxx byte-long segment ended in LF) determine if THIS is the last record as that information is stored internally so I know how much to read. That isn't the problem. It just doesn't give me anything back. I'm checking with the vendor to see if it is on their end but presume it is on my end as I've never done this before.

It would really help if I could figure out what the errno was.

Thank you,
Chris Anderson
Partners Mutual Insurance

***************************************************************************
*Ted,
*My comment is based on rdline procedure posted on Scott's web site
*http://www.scottklement.com/rpg/socktut/readline.html.
*
*In rdline, it is coded to receive data one byte at a time. It returns
*control back to caller when buffer is full or lf is encountered. ==>
*The guesstimate thing that you mentioned is already handled by rdline.
*
*The only thing that I see in rdline that could give a clue on OP's
*problem is that rdline will return -1 when recv() return value is less
*than 1 and no data was being put to the buffer yet. The OP mentioned
*that he is having problem with errno (Not sure what kind of problem he
*is having). Anyway, that leads me to think that it might be because
*recv() is returning 0.
*
**************************************************************************

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.