Commit 16949deb authored by Andreas Schmidt's avatar Andreas Schmidt

Add app_queue_size Python property.

parent 1c3f6faa
Pipeline #1347 passed with stages
in 2 minutes and 6 seconds
......@@ -96,6 +96,19 @@ cdef class PrrtSocket:
raise Exception("Not a sender.")
cprrt.PrrtSocket_set_sock_opt(self._c_socket, "targetdelay", value)
property app_queue_size:
def __get__(self):
if not self.isSender:
raise Exception("Not a sender.")
return cprrt.PrrtSocket_get_sock_opt(self._c_socket, "app_queue_size")
def __set__(self, value):
if not self.isSender:
raise Exception("Not a sender.")
cprrt.PrrtSocket_set_sock_opt(self._c_socket, "app_queue_size", 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