net library question

How do you do a send+reply type of setup with the net library? Is this safe to do?

[lua]
–CLIENT
net.Receive(“test”,function()
net.Start(“got_it”)
net.WriteString(“Test”)
net.SendToServer()
end)
[/lua]

Yes. It’s also safe to set up a receiver in that same callback for anything the server might send back if you really want.

Thanks.