libnice issueshttps://gitlab.freedesktop.org/libnice/libnice/-/issues2020-11-18T10:08:43Zhttps://gitlab.freedesktop.org/libnice/libnice/-/issues/17Eliminate NiceSocket in favour of GDatagramBased2020-11-18T10:08:43ZPhilip WithnallEliminate NiceSocket in favour of GDatagramBased## Submitted by Philip Withnall `@pwithnall`
Assigned to **Philip Withnall `@pwithnall`**
**[Link to original bug (#3318)](https://phabricator.freedesktop.org/T3318)**
## Description
With [`GDatagramBased`](https://bugzilla.gnome....## Submitted by Philip Withnall `@pwithnall`
Assigned to **Philip Withnall `@pwithnall`**
**[Link to original bug (#3318)](https://phabricator.freedesktop.org/T3318)**
## Description
With [`GDatagramBased`](https://bugzilla.gnome.org/show_bug.cgi?id=697907) we can now abstract socket interfaces (as long as they are datagram based, rather than stream-based). `NiceSocket` and its ill-defined and non-standard semantics and non-`GObject`-ness can go.
This should also make the socket implementations more generally reusable outside libnice.
Finally, if libnice internally starts using `GDatagramBased` for handling all its underlying sockets, it allows the possibility of creating a mock socket object for unit testing, which could eventually allow testing of complex network situations without the need to physically reproduce them. Regression tests for ICE!