#include <RefCountedSocketFactory.h>
Collaboration diagram for RefCountedSocketFactory:
Public Member Functions | |
RefCountedSocket * | get (MNSelector &sel, int port) |
RefCountedSocket * | get (MNSelector &sel, MNSocket &sock) |
void | release (void *v) |
void | del (RefCountedSocket *r) |
Static Public Member Functions | |
RefCountedSocketFactory & | factory () |
|
|
|
|
|
Find, and if not found instantiate and add |
|
Find, and if not found instantiate and add |
|
It may be impossible to create RefCountedSocket for the port given in find(), e.g. because this socket is already bound elsewhere in the system. In that case, call this function after find() to remove the reserved dictionary entry. It must be called, or it will not be possible to delete the factory.
|