Creates a new SocketSource structure.
The size is specified to allow creating structures derived from SocketSource that contain additional data. The size passed in must be at least `sizeof (GSource)`.
The source will not initially be associated with any MainContext and must be added to one with attach before it will be executed.
source_funcs |
structure containing functions that implement the sources behavior. |
struct_size |
size of the SocketSource structure to create. |
the newly-created SocketSource. |