User:RossyMiles/Flatline: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
Flatline is the most recent proposed multiplayer mod for Oni. This document is a work in progress.
Flatline is the most recent proposed multiplayer mod for Oni. This document is a work in progress.
== Protocol Information ==
UDP port 2[[Seven|7777]] and it's surrounding ports are unallocated and are unlikely to be used by any other application.


== Flatline API ==
== Flatline API ==
Line 47: Line 50:
bool '''NetUDPServer_Send('''sockaddr* '''address''', const char* '''data''', uint16_t '''datalen)'''<br>
bool '''NetUDPServer_Send('''sockaddr* '''address''', const char* '''data''', uint16_t '''datalen)'''<br>
Sends a packet of data to the specified address using the server running on the current thread. This function should only be called from '''packet_callback''' or functions called by '''packet_callback'''.
Sends a packet of data to the specified address using the server running on the current thread. This function should only be called from '''packet_callback''' or functions called by '''packet_callback'''.
=== FLrServer_* ===
These functions control the Flatline server.
98

edits