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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Joerg Wunsch-6
URL:
  <http://savannah.nongnu.org/patch/?9304>

                 Summary: [Bug #48767] Implemented WinSock variation of
"ser_drain(...)" functionality
                 Project: AVR Downloader/UploaDEr
            Submitted by: ccooper21
            Submitted on: Thu 30 Mar 2017 01:28:51 AM UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 30 Mar 2017 01:28:51 AM UTC  Name:
99-Add-WinSock-variation-of-ser_drain.patch  Size: 2kB   By: ccooper21

<http://savannah.nongnu.org/patch/download.php?file_id=40203>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9304>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Loading...