Lines Matching defs:iceConn
50 IceConn iceConn;
80 * If iceConn->want_to_close is True, or iceConn->free_asap is True,
81 * we can not use the iceConn.
148 if ((iceConn = malloc (sizeof (struct _IceConn))) == NULL)
162 if ((iceConn->trans_conn = ConnectToPeer (networkIdsList,
163 &iceConn->connection_string)) == NULL)
165 free (iceConn);
177 _IceTransSetOption (iceConn->trans_conn, TRANS_CLOSEONEXEC, 1);
179 iceConn->listen_obj = NULL;
181 iceConn->connection_status = IceConnectPending;
182 iceConn->io_ok = True;
183 iceConn->dispatch_level = 0;
184 iceConn->context = context;
185 iceConn->my_ice_version_index = 0;
186 iceConn->send_sequence = 0;
187 iceConn->receive_sequence = 0;
189 iceConn->vendor = NULL;
190 iceConn->release = NULL;
191 iceConn->outbuf = NULL;
193 iceConn->scratch = NULL;
194 iceConn->scratch_size = 0;
196 iceConn->process_msg_info = NULL;
198 iceConn->connect_to_you = NULL;
199 iceConn->protosetup_to_you = NULL;
201 iceConn->connect_to_me = NULL;
202 iceConn->protosetup_to_me = NULL;
204 if ((iceConn->inbuf = iceConn->inbufptr = malloc (ICE_INBUFSIZE)) == NULL)
206 _IceFreeConnection (iceConn);
214 iceConn->inbufmax = iceConn->inbuf + ICE_INBUFSIZE;
216 if ((iceConn->outbuf = iceConn->outbufptr = calloc (1, ICE_OUTBUFSIZE)) == NULL)
218 _IceFreeConnection (iceConn);
226 iceConn->outbufmax = iceConn->outbuf + ICE_OUTBUFSIZE;
228 iceConn->open_ref_count = 1;
229 iceConn->proto_ref_count = 0;
231 iceConn->skip_want_to_close = False;
232 iceConn->want_to_close = False;
233 iceConn->free_asap = False;
235 iceConn->saved_reply_waits = NULL;
236 iceConn->ping_waits = NULL;
238 iceConn->connect_to_you = malloc (sizeof (_IceConnectToYouInfo));
239 if (iceConn->connect_to_you == NULL)
241 _IceFreeConnection (iceConn);
248 iceConn->connect_to_you->auth_active = 0;
254 IceGetHeader (iceConn, 0, ICE_ByteOrder,
263 IceFlush (iceConn);
268 * iceConn->swap should be set to the appropriate boolean
272 iceConn->waiting_for_byteorder = True;
275 while (iceConn->waiting_for_byteorder == True && !ioErrorOccured)
278 iceConn, NULL, NULL) == IceProcessMessagesIOError);
283 _IceFreeConnection (iceConn);
292 if (iceConn->connection_status == IceConnectRejected)
298 _IceFreeConnection (iceConn);
315 "ICE", iceConn->connection_string,
340 IceGetHeaderExtra (iceConn, 0, ICE_ConnectionSetup,
344 setup_sequence = iceConn->send_sequence;
369 SEND_STRING (iceConn, IceVendorString);
370 SEND_STRING (iceConn, IceReleaseString);
376 SEND_STRING (iceConn, _IceAuthNames[i]);
384 IceWriteData16 (iceConn, 2, &v);
386 IceWriteData16 (iceConn, 2, &v);
389 IceFlush (iceConn);
404 while (!gotReply && !ioErrorOccured && iceConn)
407 iceConn, &replyWait, &gotReply) == IceProcessMessagesIOError);
416 _IceFreeConnection (iceConn);
417 iceConn = NULL;
434 _IceFreeConnection (iceConn);
435 iceConn = NULL;
439 iceConn->my_ice_version_index =
441 iceConn->vendor = reply.connection_reply.vendor;
442 iceConn->release = reply.connection_reply.release;
444 _IceConnectionObjs[_IceConnectionCount] = iceConn;
446 iceConn->connection_string;
449 free (iceConn->connect_to_you);
450 iceConn->connect_to_you = NULL;
452 iceConn->connection_status = IceConnectAccepted;
467 _IceFreeConnection (iceConn);
468 iceConn = NULL;
473 if (iceConn && _IceWatchProcs)
476 * Notify the watch procedures that an iceConn was opened.
479 _IceConnectionOpened (iceConn);
482 return (iceConn);
489 IceConn iceConn
492 return (iceConn->context);