void on_process_packet(struct connection *c,rpacket_t r) { send2_all_client(r); ++send_request; rpacket_destroy(&r); ++packet_recv; }
void on_process_packet(struct connection *c,rpacket_t r) { send2_all_client(r); //wpacket_t w = wpacket_create_by_rpacket(wpacket_allocator,r); //connection_send(c,w,NULL); //++send_request; total_bytes_recv += rpacket_len(r); ++packet_recv; }
void server_process_packet(datasocket_t s,rpacket_t r) { total_bytes_recv += rpacket_len(r); send2_all_client(r); //send2_client(s,r); }
void on_process_packet(struct connection *c,rpacket_t r) { send2_all_client(r); }