Skip to content

Refactoring differences #14

Description

@CapsAdmin

@vwout thought I'd ask for forgiveness rather than permission!

I've refactored the whole thing, so if you find the time to upgrade, for obs-visca-control you'd need to replace

socket.find_first_address("*", port, {family="inet", socket_type="dgram", protocol="udp"})

with

socket.find_first_address_info("*", port, nil, "inet", "dgram", "udp")

Other than that it should be the same.

addressinfo is its own object now which could also be addressinfo:free()'d. socket:receive_from() also returns a proper addressinfo object. In the past it was just some adhoc table that looked like one.

But the way the old socket:recive_from() was implemented, it would likely cause a memory leak when called.

I also removed the docker, action and lunit stuff, not necessarily because I didn't like it, but just because I didn't understand how to set it up. I don't mind this being added back again as long as there are clear instructions on how to setup. So right now it just builds luajit from source and runs test/run.lua

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions