Skip to content

Permit enabling SLIP on data transmissions #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/liblo.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ cdef extern from 'lo/lo.h':
char *lo_address_get_hostname(lo_address a)
char *lo_address_get_port(lo_address a)
int lo_address_get_protocol(lo_address a)
int lo_address_set_stream_slip(lo_address a, int enable)
const_char* lo_address_errstr(lo_address a)

# message
Expand Down
3 changes: 3 additions & 0 deletions src/liblo.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,9 @@ cdef class Address:
def get_protocol(self):
return lo_address_get_protocol(self._address)

def set_slip_enabled(self, enable):
lo_address_set_stream_slip(self._address, int(enable))

property url:
"""
The address's URL.
Expand Down