ParsecHostGetGuests
uint32_tParsecHostGetGuests(Parsec *ps,uint32_tstate,ParsecGuest **guests)
Get a list of all connected and/or waiting guests.
The return value guests
is dynamically allocated and must be passed to ParsecFree
after use.
Parameters
Direction | Name | Description |
---|---|---|
in | ps | Parsec instance returned by ParsecInit . |
in | state | Guest connection lifecycle state. Bitwise or of GUEST_CONNECTED and/or GUEST_WAITING . |
out | guests | Pointer to an array of guests. May be NULL to query the number of guests but not set the array. |
Returns
The length of the array returned in guests
.