attach


Description:

public uint attach (MainContext? context)

Adds a SocketSource to a context so that it will be executed within that context.

Remove it by calling destroy.

Parameters:

this

a SocketSource

context

a MainContext (if null, the default context will be used)

Returns:

the ID (greater than 0) for the source within the MainContext.