patchAVR Downloader/UploaDEr - Patches: patch #9304, [Bug #48767] Implemented WinSock...


You are not allowed to post comments on this tracker with your current authentication level.

patch #9304: [Bug #48767] Implemented WinSock variation of "ser_drain(...)" functionality

Submitted by:  Christopher Cooper <ccooper21>
Submitted on:  Thu 30 Mar 2017 01:28:51 AM UTC  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Thu 30 Mar 2017 01:28:51 AM UTC, original submission:

This patch addresses bug #48767. Unlike the POSIX network programming functionality, the Win32 networking programming functionality did not include a working version of the "ser_drain(...)" function. This function is responsible for draining any stray characters from the programming device before attempting to synchronize with the programmer for the actual programming task. The "ser_drain(...)" function did get used when attempting network programming, but it always failed because it attempted to use the Win32 "ReadFile(...)" API to read data from a WinSock socket, which is illegal. Hence, the actual programming would fail if there were any stray characters queued, causing a synchronization problem between the host and the programmer.

Christopher Cooper <ccooper21>


Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by ccooper21 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 30 Mar 2017 01:36:23 AM UTCccooper21Carbon-CopyRemoved -unavailable-=>-
    Thu 30 Mar 2017 01:28:51 AM UTCccooper21Attached File-=>Added 99-Add-WinSock-variation-of-ser_drain.patch, #40203
      Carbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1