Lines Matching refs:iceConn
39 IceConn iceConn,
45 if (iceConn->proto_ref_count == 0 || iceConn->process_msg_info == NULL ||
56 for (i = iceConn->his_min_opcode; i <= iceConn->his_max_opcode; i++)
58 int n = i - iceConn->his_min_opcode;
59 if (iceConn->process_msg_info[n].in_use &&
60 iceConn->process_msg_info[n].my_opcode == majorOpcode)
67 iceConn->process_msg_info[n].in_use = False;
68 iceConn->proto_ref_count--;
80 IceConn iceConn,
84 iceConn->skip_want_to_close = negotiate ? False : True;
91 IceConn iceConn
94 return (iceConn->skip_want_to_close ? False : True);
101 IceConn iceConn
115 if (iceConn->listen_obj &&
116 iceConn->connection_status != IceConnectAccepted)
118 _IceConnectionClosed (iceConn); /* invoke watch procs */
119 _IceFreeConnection (iceConn);
176 if (iceConn->open_ref_count > 0)
177 iceConn->open_ref_count--;
179 refCountReachedZero = iceConn->open_ref_count == 0 &&
180 iceConn->proto_ref_count == 0;
184 if (!iceConn->free_asap && (!iceConn->io_ok ||
185 (iceConn->io_ok && refCountReachedZero &&
186 iceConn->skip_want_to_close)))
192 _IceConnectionClosed (iceConn);
196 if (!iceConn->free_asap && iceConn->dispatch_level != 0 &&
197 (!iceConn->io_ok ||
198 (iceConn->io_ok && refCountReachedZero &&
199 iceConn->skip_want_to_close)))
205 iceConn->free_asap = True;
209 if (iceConn->io_ok && iceConn->dispatch_level == 0 &&
210 !iceConn->skip_want_to_close && refCountReachedZero)
216 IceSimpleMessage (iceConn, 0, ICE_WantToClose);
217 IceFlush (iceConn);
219 iceConn->want_to_close = 1;
223 else if (iceConn->dispatch_level == 0 &&
224 (!iceConn->io_ok || (iceConn->io_ok && iceConn->skip_want_to_close &&
225 (iceConn->free_asap || (!iceConn->free_asap && refCountReachedZero)))))
231 _IceFreeConnection (iceConn);
243 IceConn iceConn
246 if (iceConn->listen_obj == NULL)
249 * This iceConn was created with IceOpenConnection.
257 if (_IceConnectionObjs[i] == iceConn)
274 if (iceConn->trans_conn)
275 _IceTransClose (iceConn->trans_conn);
277 free (iceConn->connection_string);
278 free (iceConn->vendor);
279 free (iceConn->release);
280 free (iceConn->inbuf);
281 free (iceConn->outbuf);
282 free (iceConn->scratch);
283 free (iceConn->process_msg_info);
284 free (iceConn->connect_to_you);
285 free (iceConn->protosetup_to_you);
286 free (iceConn->connect_to_me);
287 free (iceConn->protosetup_to_me);
288 free (iceConn);