Commit 02bbcb61 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Update bindings and build script.

parent 61a5da33
Pipeline #59 passed with stage
#!/usr/bin/env bash
rm src/cython/prrt.c
python setup.py build_ext --inplace
python3 setup.py build_ext --inplace
......@@ -93,7 +93,7 @@ int PrrtSocket_connect(PrrtSocket *sock_ptr, const char *host, const uint16_t po
return 0;
}
int PrrtSocket_send(PrrtSocket *sock_ptr, uint8_t *data, const size_t data_len) {
int PrrtSocket_send(PrrtSocket *sock_ptr, const uint8_t *data, const size_t data_len) {
check(sock_ptr->is_sender, "Cannot send on receiver socket.")
pthread_mutex_lock(&sock_ptr->outQueueFilledMutex);
......
......@@ -47,7 +47,7 @@ PrrtSocket* PrrtSocket_create(const uint16_t port, const uint8_t is_sender);
int PrrtSocket_interrupt(PrrtSocket *sock_ptr);
int PrrtSocket_close(PrrtSocket *sock_ptr);
int PrrtSocket_connect(PrrtSocket *sock_ptr, const char *host, const uint16_t port);
int PrrtSocket_send(PrrtSocket *sock_ptr, uint8_t *data, const size_t data_len);
int PrrtSocket_send(PrrtSocket *sock_ptr, const uint8_t *data, const size_t data_len);
int32_t PrrtSocket_recv(PrrtSocket *sock_ptr, void *buf_ptr);
PrrtPacket *PrrtSocket_recv_feedback(const PrrtSocket *sock_ptr, void *bufin, const size_t length);
......
Supports Markdown
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