mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
add comms_resetSame that resets relay with existing params.
This commit is contained in:
parent
a80d874e9d
commit
ea6166f8c7
2 changed files with 9 additions and 0 deletions
|
@ -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),
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue