• allegro5.a5_display
  • allegro5.a5_file
  • allegro5.a5_font
  • allegro5.a5_image
  • allegro5.a5_joystick
  • allegro5.a5_main
  • allegro5.a5_misc
  • allegro5.a5_opengl
  • allegro5.a5_shader
  • allegro5.a5_sound
  • allegro5.a5_thread
  • allegro5.a5_triangles
  • animation
  • array
  • atlas
  • buffer
  • color
  • common
  • csg.csg_aabb
  • csg.csg
  • csg.csg_octree
  • csg.csg_shapes
  • csg.csg_test
  • data
  • display
  • exception
  • file
  • font
  • glsl
  • grid
  • hash
  • image
  • image_op
  • index
  • ini
  • isometric
  • joystick
  • keyboard
  • land
  • layer
  • list
  • log
  • main
  • map
  • mem
  • mouse
  • net
  • noise
  • openglutil
  • perlin
  • pixelmask
  • plasma
  • pool
  • protobuf
  • queue
  • random
  • runner
  • shader
  • sound
  • sprite
  • thread
  • tilegrid
  • triangles
  • util2d
  • util3d
  • util
  • view
  • voronoi
  • widget.base
  • widget.board
  • widget.book
  • widget.box
  • widget.button
  • widget.checkbox
  • widget.container
  • widget.edit
  • widget.gul
  • widget.hbox
  • widget.layout
  • widget
  • widget.menu
  • widget.mover
  • widget.panel
  • widget.scrollbar
  • widget.scrolling
  • widget.sizer
  • widget.slider
  • widget.spin
  • widget.text
  • widget.theme
  • widget.vbox
  • widget.widget_list
  • yaml.external
  • yaml.internal
  • yaml
  • yaml.xml

land.net

LandNet

land_net_get_address

Parameters: LandNet * self, int remote

Returns: char*

Return either the local or remote address of the connection.

land_net_new

no parameters

Returns: LandNet*

land_net_listen

Parameters: LandNet * self, char const * address

land_net_accept

Parameters: LandNet * self

Returns: LandNet*

land_net_connect

Parameters: LandNet * self, char const * address

land_net_lag_simulator

Parameters: LandNet * self, double delay, double jitter

land_net_limit_receive_rate

Parameters: LandNet * self, int rate

land_net_send_datagram

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.

land_net_recv_datagram

Parameters: LandNet * self, int port, char * (* address), char * packet, int size

Returns: int

[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.)

land_net_send

Parameters: LandNet * self, char const * buffer, size_t size

land_net_buffer

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.

land_net_flush

Parameters: LandNet * self, size_t size

land_net_disconnect

Parameters: LandNet * self

land_net_del

Parameters: LandNet * self

Deletes a connection. Make sure to reclaim any buffers you have assigned to it first.

land_net_poll

Parameters: LandNet * self


Generated: Thu 27 Feb 2020 10:49:37 PM EST