• Philip Withnall's avatar
    agent: Move socket/source handling from NiceAgent into Component · 790974e0
    Philip Withnall authored
    This compartmentalises it a little more, reducing the spread of
    state-changing code from three files down to one.
    
    The key change is the switch from using two GSLists of NiceSockets and
    GSources in Component, to using a single GSList of a struct {
    NiceSocket, GSource }. This is possible because there is at most one
    GSource per NiceSocket. This change reduces memory overhead (from the
    GSList structures) slightly, and makes the relationship between sockets
    and sources much clearer.
    790974e0
component.c 12 KB