Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Fiedler <glenn@networknext.com>
  • Loading branch information
gafferongames committed Jan 10, 2024
1 parent 469ea56 commit d9f8fac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ struct reliable_config_t config;

reliable_default_config( &config );

config.max_packet_size = 32 * 1024; // maximum packet size that may be sent in bytes
config.fragment_above = 1200; // fragment and reassemble packets above this size
config.max_fragments = 32; // maximum number of fragments per-packet
config.fragment_size = 1024; // the size of each fragment sent
config.transmit_packet_function = transmit_packet; // set the callback function to transmit packets
config.process_packet_function = process_packet; // set the callback function to process packets
config.max_packet_size = 32 * 1024;
config.fragment_above = 1200;
config.max_fragments = 32;
config.fragment_size = 1024;
config.transmit_packet_function = transmit_packet;
config.process_packet_function = process_packet;

reliable_endpoint_t * endpoint = reliable_endpoint_create( &config, time );
if ( endpoint == NULL )
Expand Down

0 comments on commit d9f8fac

Please sign in to comment.