Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

UDP code is hard-coded to use socket 0 [imported] #436

Copy link
Copy link
Closed
@cmaglie

Description

@cmaglie
Issue body actions

This is Issue 436 moved from a Google Code project.
Added by 2010-12-27T19:10:20.000Z by adrian.m...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, Component-Core, Milestone-0023

Original description

In Arduino 0019 and above (I think that's when the Udp code was added, it's definitely in 0021 and 0022), libraries/Ethernet/Udp.cpp contains the following line:

_sock = 0; //TODO: should not be hardcoded

This means that it's not possible to have more than one UDP "connection" (for want of a better word) at once, and would also cause problems if the sketch used both UDP and the Client class if the Client.connect was called before Udp.begin.

I've got a patch ready that fixes this, which I'll submit a pull request on github for once I've worked out how to do that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.