Commit 9dbc32dc authored by Andreas Schmidt's avatar Andreas Schmidt

Add Python binding for setting targetdelay.

parent 23d3ae6c
Pipeline #801 failed with stages
in 53 seconds
......@@ -67,12 +67,22 @@ cdef extern from "util/list.c":
cdef class PrrtSocket:
cdef cprrt.PrrtSocket* _c_socket
cdef bint isSender
cdef int32_t _targetDelay
def __cinit__(self, port, isSender):
self._c_socket = cprrt.PrrtSocket_create(isSender)
cprrt.PrrtSocket_bind(self._c_socket, "0.0.0.0", port)
self.isSender = isSender
@property
def target_delay(self):
return self._targetDelay
@target_delay.setter
def target_delay(self, value)
self._targetDelay = value
cprrt.PrrtSocket_set_sock_opt(self._c_socket, "targetdelay", value)
def recv(self):
cdef char buffer[65536]
cdef int32_t len
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment