Import std.net.game.link
std.net.game.link
std.net.game's links: what a GameHost sends its packets over and takes them from. A UdpSocket is one, through GameHost.Bind, and so is any Class that implements GameLink, as a test's link that loses packets on purpose does.
std/net/game/link.fb
Types
GameLink
interface
Public Interface GameLink
What a GameHost's datagrams go over, as UDP's do: each one whole or not at all, maybe more than once, in no promised order.
-
Where it receives, as the other side sends to it.
-
Sends
bytestotoas one datagram. -
The next datagram that's come, and where from, waiting for
timeoutat most, or Null when none came by then. A timeout of 0 takes what's come without waiting. -
Receive's Async twin, which waits on the main thread.
-
Closes it, if it holds anything to close.
Report an issue with this page or with FutureBlitz on GitHub.