- Home /
Using Job System to Poll Sockets
At this point I have thrown together a simple polling Job to poll sockets on a separate thread. I CAN get this to work using a thread, but I figured the more organic the better.
Is this even possible? I get an error that states the struct I am passing is not a value type. I get it thinks that poll_connections is a reference.
I build a List which is a struct that contains a Socket and a string. I pull the Socket from currently connected Sockets. The more I write about it the more I think that there's no real way to pass a Socket without a reference. You cannot just make a copy of the Socket otherwise that would be a different connection.
I guess ultimately, this question is more about whether this is even possible. Thanks!
Comment