This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to set overtime to serial port block read/write?


Hi, everyone:
    I think it's a common question, but i can't find the answer. I
think block read/write of serial port need a overtime, if time exceeds
that, i can made my program don't
wait any longer, if i can't set overtime, maybe i send a command and
wait for response, but when some error occurs and the reponse is lost,
my thread will wait forever.

Do anyone have find how to send overtime to block read/write? Please help me.

Thanks.
wenbo

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]