Skip to content

bind/connect sizeof ? #1

Description

@sgs1370

First - thank you for maintaining this. I have been dragging around my own copy until I found this.

I made the modification on my own copy, so if this is not useful comment, just close.

In order to make this work, both on ubuntu 16 and on macos, I had to change the bind and connect functions to have

sizeof(struct sockaddr)

instead of

sizeof(sinme) (or for connect, sizeof(sinhim))

Otherwise I was getting

ttcp-t: connect: Invalid argument

or

ttcp-r: bind: Invalid argument

NOTE: I never did learn how to properly debug C, so I can't say why mine wasn't working in the first place, or why my change works, it could be by accident.

Anyhow thanks again!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions