Parameters: LandNet * self, int remote
Returns: char*
Return either the local or remote address of the connection.
no parameters
Returns: LandNet*
Parameters: LandNet * self, char const * address
Parameters: LandNet * self
Parameters: LandNet * self, double delay, double jitter
Parameters: LandNet * self, int rate
Parameters: LandNet * self, char const * address, char const * packet, int size
Returns: int
[experimental] This is to directly send a datagram to some address. This is an experimental feature and for now, you should use land_net_send when possible.
Parameters: LandNet * self, int port, char * (* address), char * packet, int size
[experimental] Receives a datagram. Returns the number of received bytes (less than or equal to size), or 0 if there’s no datagram to be received. If address is not None and the return value is > 0, it will point to a static buffer containing the source address. (If you need that address for anything, copy it to your own buffer immediately.)
Parameters: LandNet * self, char const * buffer, size_t size
Parameters: LandNet * self, char * buffer, size_t size
Assign a networking buffer to use. This buffer keeps being owned by you, Land will never delete it on its own.
Parameters: LandNet * self, size_t size
Deletes a connection. Make sure to reclaim any buffers you have assigned to it first.