# UPDsocket recv without allocations?

**URL:** <https://discourse.julialang.org/t/updsocket-recv-without-allocations/93481>\
**Category:** Performance\
**Tags:** sockets\
**Created:** [January 25, 2023, 1:58am UTC](https://discourse.julialang.org/t/updsocket-recv-without-allocations/93481 "2023-01-25T01:58:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tt1234567](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Post date:** [May 1, 2024, 8:32am UTC](https://discourse.julialang.org/t/updsocket-recv-without-allocations/93481/4 "2024-05-01T08:32:20Z")

</div>

Hello @Larbino1. I had this problem a while ago. I produced a hacked version of a function from `Sockets.jl` which worked ok but it still had problems with being interrupted by the garbage collector so in the end I used C++ via `CxxWrap` to do the UDP comms for my program. See [here](https://discourse.julialang.org/t/how-to-pass-a-buffer-to-a-c-callback-function/87716).

---

_[View the full topic](https://discourse.julialang.org/t/updsocket-recv-without-allocations/93481)._
