You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my application is something broadcast server, pseudo code like this:
BufferedSocket:
vector<shared_ptr<Message>> messages_;
OnRead():
while(shared_ptr<Message> m = read())
//this is important
BroadMessageToAll(m)
OnWrite():
Buffer buffer = CombineMessageToBuffer(messages_)
write(buffer)
EventLoop:
vector<shared_ptr<BufferedSocket>> sockets = epoll_wait()
for each socket in sockets:
if socket.readable()
socket.OnRead()
if socket.writable()
socket.OnWrite()
I want gather write option, call system call "write" once to send everything(maybe twice). that is what i do in cpp.
how can i do this thing in rust?
or there is a better way?
thanks a lot.
The text was updated successfully, but these errors were encountered:
We do not currently have an epoll/select abstraction. The current answer is "spawn a task per socket". Tracking select/epoll is done in #6842, so closing in favor of that issue.
Fix drop scopes problems in mir
Fix false positives of `need-mut` emerged from rust-lang#14955
There are still 5 `need-mut` false positives on self, all related to `izip!` macro hygenic issue. I will try to do something about that before monday release.
my application is something broadcast server, pseudo code like this:
I want gather write option, call system call "write" once to send everything(maybe twice). that is what i do in cpp.
how can i do this thing in rust?
or there is a better way?
thanks a lot.
The text was updated successfully, but these errors were encountered: