P
Paul
Hello,
Consider this case:
Init(params) does some initialization and there is a function
Connect(params). The system starts and is idle until some one calls
Connect, as soon as first Connection is received and only on first
connection request Init() has to be called before serving Connection
request.
if(bInitialized) checks needs to be avoided as Connect() is invoked
several times. Init & Connect prototypes are different.
I have a solution, changing function pointers, any others??? Please
suggest...
thanks
-Paul.
Consider this case:
Init(params) does some initialization and there is a function
Connect(params). The system starts and is idle until some one calls
Connect, as soon as first Connection is received and only on first
connection request Init() has to be called before serving Connection
request.
if(bInitialized) checks needs to be avoided as Connect() is invoked
several times. Init & Connect prototypes are different.
I have a solution, changing function pointers, any others??? Please
suggest...
thanks
-Paul.