bugGNU Octave - Bugs: bug #51913, [octave forge] (sockets) feature...

 
 

bug #51913: [octave forge] (sockets) feature request for non-blocking recv on Windows

Submitter:  Joseph Hayden <jshayden>
Submitted:  Fri 01 Sep 2017 05:58:50 PM UTC
   
 
Category:  Octave Package Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Joseph Hayden Open/Closed:  * Open
Release:  * 4.2.1 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 24 Feb 2022 04:03:04 AM UTC, comment #3: 

@lostbard: Is this still an issue with sockets 1.3.0?

Or can this item be closed as "won't fix" after five years of inactivity?

Kai Torben Ohlhus <siko1056>
Group Member
Fri 01 Sep 2017 10:08:51 PM UTC, comment #2: 

No, I don't think that MSG_PEEK works.  The function recv(socket,length,MSG_PEEK) is blocking as well.  Perhaps I don't know how to use MSG_PEEK correctly.

Joseph Hayden <jshayden>
Fri 01 Sep 2017 07:36:33 PM UTC, comment #1: 

You could probably do it with MSG_PEEK?

John Donoghue <lostbard>
Group Member
Fri 01 Sep 2017 05:58:50 PM UTC, original submission:  

Octave package "sockets" on Ubuntu has non-blocking recv() call using the flag MSG_DONTWAIT.  However, it seems that MSG_DONTWAIT is undefined in Winsock2 and thus recv(socket,length,MSG_DONTWAIT) does not work in Octave Windows.

Is it possible to add either a non-blocking recv() call, or a means to monitor the number of bytes available on the socket?

Joseph Hayden <jshayden>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by jshayden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-09-01 mtmiller Severity3 - Normal 1 - Wish
        SummarySockets package : feature request for non-blocking recv() call [octave forge] (sockets) feature request for non-blocking recv on Windows

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code