void AJ_Disconnect(AJ_BusAttachment* bus) { /* * We won't be getting any more method replies. */ AJ_ReleaseReplyContexts(); /* * Disconnect the network closing sockets etc. */ AJ_Net_Disconnect(&bus->sock); #ifdef AJ_SERIAL_CONNECTION AJ_SerialShutdown(); #endif }
void AJ_Disconnect(AJ_BusAttachment* bus) { /* * We won't be getting any more method replies. */ AJ_ReleaseReplyContexts(); /* * Disconnect the network closing sockets etc. */ AJ_Net_Disconnect(&bus->sock); /* * Host-specific network shutdown procedure */ AJ_Net_Down(); }
void AJ_Disconnect(AJ_BusAttachment* bus) { /* * Close security module */ AJ_SecurityClose(bus); /* * We won't be getting any more method replies. */ AJ_ReleaseReplyContexts(); /* * Disconnect the network closing sockets etc. */ AJ_Net_Disconnect(&bus->sock); #ifdef AJ_SERIAL_CONNECTION AJ_SerialShutdown(); #endif /* * Clear auth context */ AJ_ClearAuthContext(); /* * Set the routing nodes proto version to zero (not connected) */ routingProtoVersion = 0; /* * Clean up the ongoing session bookkeeping */ AJ_BusRemoveAllSessions(bus); }