# NOT RUN {
req <- socket("req", listen = "inproc://nanonext")
rep <- socket("rep", dial = "inproc://nanonext")
ctx <- context(req)
send_ctx(ctx, data.frame(a = 1, b = 2), timeout = 100)
msg <- recv_aio(rep, timeout = 100)
send_ctx(ctx, c(1.1, 2.2, 3.3), mode = "raw", timeout = 100)
close(req)
close(rep)
# }
Run the code above in your browser using DataLab