A long time ago I made UdpSocket, TcpSocket, TcpListener, etc const classes because that was the only way to pass as messages between Actors.
But now I am thinking the proper design is to make them normal mutable classes, and you should use Unsafe to pass them between actors.
Any objections to that change?
Promoted to ticket #1348 and assigned to brian
Ticket resolved in 1.0.57
All the socket classes are now mutable non-const. If using them b/w actors in your own code you will need to wrap them Unsafe.
Login or Signup to reply.