fdptr - pointeur on callback proc to display communication status during
life of session or NULL
p - pointer on callback proc called to parse messages
logp - pointer on callback proc called to display debug traces or NULL
StatusFlag - address of flag to set when communication is up or NULL
Returns:
0 if communication successfuly opened or already opened