Arcaelyx has quit [Read error: Connection reset by peer]
lispmacs has joined #racket
<lispmacs>
hi, has anybody tried to use Racket with POSIX message queues? (mqueue.h)
<lispmacs>
I wanted to for one project but was wondering if the FFI programming to mqueue.h API would likely be difficult (my last experience at FFI programming didn't work out well)
casaca has quit [Ping timeout: 248 seconds]
casaca has joined #racket
orivej has joined #racket
Arcaelyx has joined #racket
Arcaelyx has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 245 seconds]
dustyweb has quit [Ping timeout: 276 seconds]
johnjay has quit [Remote host closed the connection]
vraid has quit [Quit: Leaving]
johnjay has joined #racket
johnjay has quit [Remote host closed the connection]
pera has joined #racket
johnjay has joined #racket
<jcowan>
lispmacs: Are you trying to communicate with someone already using them?
<jcowan>
If not, I would advise sending S-expressions (which are nicely self-delimiting) over a named pipe instead.
<jcowan>
In particular, it's OS-specific whether select() works with message queues.
<jcowan>
(Or if you depend on the priority feature)
casaca has quit [Ping timeout: 246 seconds]
Arcaelyx has joined #racket
casaca has joined #racket
m1dnight_ has quit [Ping timeout: 272 seconds]
m1dnight_ has joined #racket
<lispmacs>
jcowan: I have this project going trying to control a HackRF SDR device from Racket. The HackRF provides a C library for that. For some time I worked with Racket FFI to interface directly with the C library, but have run into a lot of trouble, owing I think mainly to libhackrf using pthreads internally (next page -->)
<lispmacs>
So, I gave up on that and am having the control program being separated out as small standalone C program. My thought was to have the bulk of the incoming/outgoing data transferred to/from racket program over named pipe (next page -->)
<lispmacs>
but thought it would be nice also to send control messages over message queue
<lispmacs>
i.e., messages for controlling radio parameters, turning RX/TX on and off, and such like
<lispmacs>
I started this morning to use Racket FFI to interface to mqueue.h API, but haven't got far enough yet to know if it will work or not
dustyweb has joined #racket
<jcowan>
Why not two pipes, then?
<jcowan>
That way you can select on the control-message pipe first and if that is empty you can select on the data pipe.
vraid has joined #racket
DGASAU has quit [Read error: Connection reset by peer]
DGASAU has joined #racket
dustyweb has quit [Ping timeout: 268 seconds]
pera has quit [Ping timeout: 245 seconds]
efm has joined #racket
dustyweb has joined #racket
pera has joined #racket
selimcan has joined #racket
casaca has quit [Ping timeout: 258 seconds]
casaca has joined #racket
casaca has quit [Ping timeout: 248 seconds]
casaca has joined #racket
<selimcan>
'sup
selimcan has quit [Quit: Leaving]
casaca has quit [Ping timeout: 272 seconds]
casaca has joined #racket
ym555 has joined #racket
sauvin has quit [Read error: Connection reset by peer]
Lowl3v3l has joined #racket
casaca has quit [Ping timeout: 245 seconds]
casaca has joined #racket
YuGiOhJCJ has quit [Remote host closed the connection]
YuGiOhJCJ has joined #racket
dustyweb has quit [Ping timeout: 246 seconds]
ubLIX has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
dustyweb has joined #racket
dustyweb has quit [Read error: Connection reset by peer]
efm has quit [Ping timeout: 245 seconds]
FreeFull has joined #racket
efm has joined #racket
casaca has quit [Quit: leaving]
dharog has joined #racket
vraid has quit [Disconnected by services]
pera has quit [Ping timeout: 245 seconds]
orivej has joined #racket
efm has quit [Ping timeout: 246 seconds]
pera has joined #racket
endformationage has quit [Ping timeout: 268 seconds]
endformationage has joined #racket
dharog has quit [Quit: WeeChat 2.2]
badkins has quit [Remote host closed the connection]
selimcan has joined #racket
selimcan has quit [Client Quit]
jao has quit [Ping timeout: 258 seconds]
jao has joined #racket
selimcan has joined #racket
selimcan has quit [Client Quit]
selimcan has joined #racket
keep_learning has quit [Ping timeout: 246 seconds]
ZombieChicken has joined #racket
selimcan has quit [Quit: Leaving]
efm has joined #racket
ubLIX has quit [Quit: ubLIX]
Arcaelyx has quit [Quit: Arcaelyx]
Arcaelyx has joined #racket
jao has quit [Ping timeout: 246 seconds]
jao has joined #racket
YuGiOhJCJ has joined #racket
DGASAU has quit [Remote host closed the connection]