Lines Matching defs:connection

91             // This buffer will be taken over by the connection it was routed to
103 // Read the incomming message and route it to the connection based
130 /* First cleanup the connection list */
133 NetlinkConnection *connection = findConnection(hash);
135 if (connection == NULL) {
136 //LOG_I("%s: Cound't find the connection, creating a new one", __FUNCTION__);
137 connection = new NetlinkConnection(this, serverSock, pid, seq);
138 // Add the new connection
139 insertConnection(hash, connection);
142 connection->handleMessage(nlh);
145 if (connection->detached == false) {
146 if (!connectionHandler->handleConnection(connection)) {
148 connection->socketDescriptor = -1;
150 connectionHandler->dropConnection(connection);
152 // Remove connection from list
154 connection->socketDescriptor = -1;
155 delete connection;
157 // If connection data is set to NULL then device close has been called
159 else if (connection->connectionData == NULL &&
160 connection->detached == false) {
161 delete connection;
169 Connection *connection
172 connection->detached = true;
212 NetlinkConnection *connection
215 peerConnections[hash] = connection;
237 NetlinkConnection *connection = NULL;
240 connection = i->second;
242 pid = connection->peerPid & 0xFFFF;
249 bool detached = connection->detached;
251 __FUNCTION__, pid, connection->peerPid);
253 connection->socketDescriptor = -1;
255 connectionHandler->dropConnection(connection);
257 // We aren't handling this connection anymore no matter what
258 removeConnection(connection->hash);
260 // Remove connection from list only if detached, the detached
263 delete connection;