add comms_resetSame that resets relay with existing params.

This commit is contained in:
eehouse 2010-06-05 03:39:16 +00:00
parent a80d874e9d
commit ea6166f8c7
2 changed files with 9 additions and 0 deletions

View file

@ -290,6 +290,14 @@ cleanupAddrRecs( CommsCtxt* comms )
comms->recs = (AddressRecord*)NULL;
} /* cleanupAddrRecs */
void
comms_resetSame( CommsCtxt* comms )
{
comms_reset( comms, comms->isServer,
comms->r.nPlayersHere, comms->r.nPlayersTotal );
}
void
comms_reset( CommsCtxt* comms, XP_Bool isServer,
XP_U16 XP_UNUSED_RELAY(nPlayersHere),

View file

@ -142,6 +142,7 @@ CommsCtxt* comms_make( MPFORMAL XW_UtilCtxt* util,
void comms_reset( CommsCtxt* comms, XP_Bool isServer,
XP_U16 nPlayersHere, XP_U16 nPlayersTotal );
void comms_resetSame( CommsCtxt* comms );
void comms_transportFailed( CommsCtxt* comms );
void comms_destroy( CommsCtxt* comms );