source: trunk/ORBit2-2.14.0/linc2/ChangeLog@ 360

Last change on this file since 360 was 92, checked in by cinc, 19 years ago

Orbit2 modified for use with NOM

File size: 67.9 KB
Line 
12006-02-03 Tor Lillqvist <tml@novell.com>
2
3 * src/linc-protocols.c [Win32] (get_netid): Guard against
4 gethostbyname() failing.
5
62006-02-01 Tor Lillqvist <tml@novell.com>
7
8 * src/linc-protocols.c (get_netid): Use getaddrinfo() only if
9 HAVE_GETADDRINFO, otherwise gethostbyname(). This means we won't
10 use getaddrinfo() on Windows, as the configure test as currently
11 written doesn't find it on Windows. (It is present only on XP
12 anyway, so if we use it the ORBit2 DLL will not load on Windows
13 2000.)
14
152005-12-21 Jules Colding <colding@omesc.com>
16
17 * src/linc-protocols.c (get_netid): Remove unnecessary casts (Bug #324686).
18 The fix was created by Damien Carbery.
19
202005-11-11 Jens Granseuer <jensgr@gmx.net>
21
22 * src/linc-protocols.c (get_netid): fix // comment.
23
242005-11-08 Anders Carlsson <andersca@imendio.com>
25
26 * src/linc-server.c (link_server_accept_connection):
27 Listen to the "broken" signal on connections.
28 (link_server_client_connection_broken):
29 Remove the connection from the list and unref it.
30 (link_server_dispose): Disconnect from the "broken" signal.
31
322005-10-13 Dmitry Maksyoma <ledestin@gmail.com>
33
34 * src/linc-server.c (link_server_setup): fix potential
35 socket leak, don't spin forever with a specified port.
36
372005-08-01 Jules Colding <colding@omesc.com>
38
39 * src/linc-protocols.c (get_netid): Replace two silly ';;'s with ';'.
40
412005-07-28 Tor Lillqvist <tml@novell.com>
42
43 * src/linc-compat.h: Include also ws2tcpip.h on Win32.
44
45 * src/linc-protocols.c: Drop unnecessary inclusion of
46 <dirent.h>. Don't include Unix-only headers on Win32.
47 (get_netid): Add Win32 implementation of interface listing.
48 (link_get_local_hostname): Drop the Win32-only code snippet that
49 made sure looking up the hostname works. Will have to rethink
50 whether it's necessary later, and add back inside the appropriate
51 place in get_netid().
52
532005-07-28 Jules Colding <colding@omesc.com>
54
55 * src/linc-protocols.c: Change default use_local_host to
56 LINK_NET_ID_IS_FQDN.
57 (get_netid): Convert to C89-style.
58
592005-07-25 Jules Colding <colding@omesc.com>
60
61 * src/linc-protocols.c (get_netid): New function get_netid(). This
62 function will full a preallocated buffer with a string describing
63 the name of the local host according to the value of use_local_host.
64
65 link_get_local_hostname(): Modified to produce a resolvable hostname
66 according to the value of use_local_host. This hostname will be used
67 when composing IORs.
68
69 use_local_host: Defaults now to LINK_NET_ID_IS_IPADDR fopr maximum
70 resolvability.
71
72 * include/linc/linc-protocol.h: Added new enum type "LinkNetIdType" to
73 use as argument in link_use_local_hostname().
74
752005-07-09 Sebastian Rittau <srittau@jroger.in-berlin.de>
76
77 * src/cleanup.c: (main): Use g_get_tmpdir() instead of hardcoding
78 /tmp.
79
802005-05-10 Mark McLoughlin <mark@skynet.ie>
81
82 Use a 256k stack for the IO thread rather than
83 the system default (10M on FC4). bug #303649
84
85 * src/linc.c: (link_exec_set_io_thread): Use
86 a 256k stack.
87
882005-04-15 Tor Lillqvist <tml@novell.com>
89
90 * src/linc-private.h: On Win32, keep a pointer back to the
91 embedding LinkWatch in the LinkUnixWatch. Also, keep a pointer to
92 the last polled LinkUnixWatch in the LinkWatch.
93
94 * src/linc-source.c (link_source_prepare): On Win32, if changing
95 which of the two LinkUnixWatch GSources associated with a
96 LinkWatch we are polling, we have to associate the corresponding
97 event with the socket by calling WSAEventSelect().
98 (link_source_create_watch_for_watch): New helper function that
99 calls link_source_create_watch() and then on Win32 associates a
100 LinkWatch with the LinkUnixWatch().
101 (link_io_add_watch_fd, link_watch_move_io): Call the above.
102
1032005-04-14 Arvind Samptur <arvind.samptur@wipro.com>
104
105 * include/linc/linc-protocol.h: Add link_get_local_hostname ()
106 * src/linc-private.h: Remove link_get_local_hostname ()
107 Patch approved by Michael Meeks
108
1092005-04-13 Tor Lillqvist <tml@novell.com>
110
111 * src/linc.c
112 * src/linc-protocols.c: Use gstdio wrappers for better localized
113 filename support on Win32.
114
115 * src/linc-compat.c (link_strerror): Use g_strerror() instead of
116 strerror() to get UTF-8 messages.
117
1182005-03-24 Tor Lillqvist <tml@novell.com>
119
120 * src/linc-source.c (link_source_check): One more iteration of the
121 Win32 code. The code passes zero as the hEventObject parameter to
122 WSAEnumNetworkEvents(). This meant that the event never got reset,
123 and kept firing. Problem noticed with gconfd-2 and
124 bonobo-activation-server, which kept busy-looping and consuming
125 lots of CPU.
126
127 Now we reset the event if it is set but WSAEnumNetworkEvents() has
128 returned an empty network event mask. We then also
129 WSAEventSelect() an empty network event mask, so that the next
130 call to the prepare method will reselect for the appropriate
131 network events.
132
133 No need to handle FD_ACCEPT events specially any longer, the above
134 takes care of it.
135
136 * src/linc-debug.h (d_printf): Do a fflush(), too.
137
138 * src/linc.c (link_init): Improve debug output facilities: If
139 CONNECTION_DEBUG and CONNECTION_DEBUG_FLAG are #defined, check for
140 environment variable LINK_PER_PROCESS_STDERR, and if set, redirect
141 stderr to a per-process log file.
142
1432005-03-11 Arvind Samptur <arvind.samptur@wipro.com>
144
145 * src/linc-server.c (link_server_setup): Fill the LinkServer proto
146 with the info as soon as we find one. In case we cannot setup the
147 connection the link_protocol_destroy_cnx () throws up a proto not
148 found assertion which is not true. Patch reviewed by Micheal Meeks.
149
1502005-03-10 Tor Lillqvist <tml@novell.com>
151
152 * src/linc-protocols.c (link_get_local_hostname): Make sure
153 looking up the local hostname works on Win32. Try first dropping
154 the domain suffix, and then using the NetBIOS name.
155 (link_protocol_get_sockinfo_ipv4): Make sure looking up the
156 hostname to be returned works. If not, use IP address instead.
157
158 * test/test-linc.c (test_local): Ifdef out variable not used on Win32.
159
1602005-02-23 Tor Lillqvist <tml@novell.com>
161
162 * src/linc-private.h
163 * src/linc.c: Use consistent spelling, with a 'k', for the
164 optional LINK_CONNECTION_DEBUG environment variable.
165
166 * src/linc-source.c (link_source_check): If we get a FD_ACCEPT
167 event on a socket, reset the selected event mask to zero, and
168 reset the event. Otherwise the event keeps firing. Problem noticed
169 in test-giop.
170
1712005-02-18 Tor Lillqvist <tml@novell.com>
172
173 More hacking on linc2 for Windows. After the below changes,
174 test_blocking() in test-linc finally works also on Windows. More
175 importantly, the test programs in libbonobo also work.
176
177 The semantics of the socket event functionality (WSAEventSelect(),
178 WSAEnumNetworkEvents()) were less intuitive than I had
179 thought. The event fires for writeability only once after
180 connect() or accept(), and after that only once each time the
181 socket becomes writeable again, after having been in the
182 WSAEWOULDBLOCK state. The documentation for WSAEventSelect() does
183 explain this, but it's very easy to miss.
184
185 * src/linc-private.h (LinkUnixWatch): Add new flag for Win32:
186 write_would_have_blocked, to be set to TRUE for watches when
187 writing to the socket has errored with WSAEWOULDBLOCK.
188
189 (LinkConnectionPrivate): Add counters of total number of bytes
190 read and written if CONNECTION_DEBUG defined.
191
192 * src/linc-source.c (link_source_check, link_source_dispatch):
193 Move the call to WSAEnumNetworkEvents() to the check method from
194 the dispatch method. Call WSAEnumNetworkEvents() always, as the
195 WaitForMultipleObjects() in g_poll() fires just for one event at a
196 time. If writes to the socket are not currently known to cause
197 blocking, always set G_IO_OUT in revents.
198
199 Don't reset the selected event mask each time. Reselect a new mask
200 (in the prepare method) only if the condition has changed, as
201 originally was the idea. The tests in ../test/everything still
202 work.
203
204 (link_win32_watch_set_write_wouldblock): New function, to set the
205 write_would_have_blocked flag.
206
207 * src/linc-connection.c: Initialize, increment and print the total
208 counters if CONNECTION_DEBUG.
209
210 (write_data_T): Call link_win32_watch_set_write_wouldblock().
211
212 * src/linc-debug.h: Enable making the debugging printout
213 selectable at run-time through an environment variable. By default
214 debugging printout code not compiled in, though.
215
216 * test/test-linc.c: Do run test_blocking() also on Windows.
217
2182005-02-13 Arvind Samptur <arvind.samptur@wipro.com>
219
220 * include/linc/linc-protocol.h: Add link_use_local_hostname ()
221
222 * src/linc-protocols.c (link_use_local_hostname): Set the global
223 use_local_host.
224 (link_get_local_hostname): Return "localhost" if use_local_host
225 is set.
226 Patch reviewed by Michael Meeks
227
2282005-02-07 Tor Lillqvist <tml@novell.com>
229
230 * src/linc-debug.h: Don't define CONNECTION_DEBUG on Win32, done
231 with the heavy debugging for now.
232
233 * src/linc-source.c (link_source_dispatch): Unselect socket
234 events, so that we have to re-select them with WSAEventSelect() in
235 link_source_prepare(). Don't know why, but this prevents the test
236 in ../test/everything from hanging after the async tests.
237
2382005-02-02 Hans Petter Jansson <hpj@novell.com>
239
240 * src/linc-compat.h: Include <sys/types.h> before the optional stuff.
241 Some platforms don't pull it in automatically when needed.
242
2432005-01-28 Tor Lillqvist <tml@novell.com>
244
245 * src/linc-compat.c: Rename link_socketpair() to link_pipe(), and
246 make it cross-platform, just encapsulating pipe() on Unix.
247
248 * src/linc.c: Change accordingly.
249
250 * src/linc/linc-compat.h
251 * include/linc/linc.h: Move declarations of
252 link_map_winsock_error_to_errno() and link_pipe() to linc.h, as
253 they are used also in GIOP.
254
2552005-01-27 Tor Lillqvist <tml@novell.com>
256
257 * src/linc-compat.h: Include <sys/utime.h> if that's where utime.h
258 is.
259
260 * src/linc-private.h (LinxUnixWatch): On Win32, the GPollFD::fd is
261 actually a HANDLE, so keep also the original SOCKET around, and
262 the desired socket event mask.
263 (LINK_TEMP_FAILURE_RETRY): Split into separate macros for retrying
264 "normal" system call API and socket API. They're different on
265 Win32.
266 (LINK_CLOSE_SOCKET): New macro. On Win32 uses closesocket().
267
268 * src/*.c: Adapt to above changes. Include linc-compat.h. Add more
269 d_printf() debugging output (which normally expands to
270 nothing). Add WinSock code. Bypass Unix-only stuff on Win32.
271
272 * src/linc-debug.h: Always define CONNECTION_DEBUG on Win32 (for
273 now while working on Win32 port).
274
275 * src/linc-protocols.c: Use LINK_PROTOCOL_NEEDS_BIND for IPv4 on
276 Win32.
277
278 * src/linc-source.c: The core machinery for interfacing to the
279 GLib main loop on Win32 is here.
280 (link_source_prepare): Call WSAEventSelect() if the event mask
281 (i.e., condition) has changed.
282 (link_source_dispatch): Call WSAEnumNetworkEvents() to find out
283 what socket event actually fired.
284 (link_source_create_watch): Create an event to poll on in the GLib
285 main loop. Store that in the GPollFD::fd.
286 (link_watch_unlisten): Close the events.
287
288 * src/linc.c: On Win32, instead of a pipe, use a connected TCP
289 socket pair as the wakeup pipe.
290 (link_init): Start WinSock.
291
292 * test/test-linc.c (init_tmp): Use g_build_filename().
293 (create_server, create_client): On Win32 use IPv4 not UNIX
294 sockets.
295 (test_broken): Only if HAVE_SYS_WAIT_H.
296 (knobble_watch): Don't use a pointer before asserting it's
297 non-NULL. Don't g_assert() an expression with side-effects,
298 g_assert expands to empty when compiled with G_DISABLE_ASSERT.
299 (test_local): Don't test UNIX sockets on Win32.
300 (test_blocking, main): For some reason the "blocking" test doesn't
301 work on Win32, bypass for now.
302
3032005-01-26 Gustavo J. A. M. Carneiro <gjc@gnome.org>
304
305 * src/linc-protocols.c: Add missing #include <utime.h>.
306
3072005-01-26 Tor Lillqvist <tml@novell.com>
308
309 * include/linc/linc-connection.h
310 * include/linc/linc-protocol.h: Restructure includes for Win32.
311
312 * src/linc-compat.c: New file, Win32 portability functions.
313
314 * src/linc-compat.h: Win32 additions, restructuring.
315
316 * src/Makefile.am (bin_PROGRAMS): Don't build linc-cleanup-sockets
317 on Win32, where there are no Unix domain sockets to clean up. Add
318 linc-compat.c
319
3202004-09-27 Michael Meeks <michael@ximian.com>
321
322 * src/linc-connection.c
323 (link_connection_try_reconnect): actually
324 unset inhibit reconnect having emitted callbacks.
325
3262004-09-16 Michael Meeks <michael@ximian.com>
327
328 * src/linc-connection.c
329 (dispatch_callbacks_drop_lock): split out.
330 (link_connection_state_changed_T_R): upd.
331 (link_connection_try_reconnect): dispatch callbacks
332 immediately if we own the default mainloop, so we don't
333 deadlock vs. the idle handler.
334
3352004-05-26 Padraig O'Briain <padraig.obriain@sun.com>
336
337 * src/linc-private.c (LINC_TEMP_FAILURE_RETRY): Change macro to
338 not use __extension__ which does not build on Solaris when not using
339 gcc.
340 * src/linc-connection.c (linc_connection_do_initiiate,
341 link_server_accept_connection, write_data_T): Update because of
342 change to macro LINC_TEMP_FAILURE_RETRY.
343 * src/linc-server.c (link_server_accept_connection): Update because of
344 change to macro LINC_TEMP_FAILURE_RETRY.
345
346 Fixes bug #143129.
347
3482004-05-21 Frank Rehberger <frehberg@gnome-de.org>
349
350 * src/linc-private.h (LINC_TEMP_FAILURE_RETRY): macro retries IO
351 operation in case of EINTR IO-error.
352 * src/linc-connection.c (link_connection_do_initiate,
353 link_server_accept_connection): wrap IO read/write operations with
354 LINC_TEMP_FAILURE_RETRY
355
3562004-03-04 Michael Meeks <michael@ximian.com>
357
358 * Version 2.10.0
359
3602004-02-05 Michael Meeks <michael@ximian.com>
361
362 * src/linc-connection.c
363 (link_connections_close): fix - do dispose loop,
364 don't unref things we don't own.
365 (link_connection_finalize): add debug assertion.
366 (link_connection_from_fd_T): dont' re-add the cnx
367 to the list when re-trying the connect.
368
3692004-02-04 Michael Meeks <michael@ximian.com>
370
371 * Version 2.9.7
372
3732004-02-02 Michael Meeks <michael@ximian.com>
374
375 * src/linc-private.h: include linc-debug.h here, after the
376 glib include, instead of all elsewhere.
377
3782004-01-14 The Written Word <bugzilla-gnome@thewrittenword.com>
379
380 * src/linc-debug.h: don't assume vararg macros.
381
382 * src/linc.c: include config.h
383
3842003-12-10 Michael Meeks <michael@ximian.com>
385
386 * src/linc.c (link_set_io_thread): fix warning.
387
3882003-12-08 Michael Meeks <michael@ximian.com>
389
390 * src/linc-connection.c
391 (link_connection_exec_cnx_unref): do yet more locking.
392
3932003-11-14 Padraig O'Briain <padraig.obriain@sun.com>
394 * linc2/src/linc-server.c (link_server_handle_io): Add comment
395 about change of g_error to g_warning for bug #126209.
396
3972003-11-13 Michael Meeks <michael@ximian.com>
398
399 * Version 2.9.1
400
4012003-11-11 Justin Schoeman <justin@expertron.co.za>
402
403 * linc2/src/linc.c (link_set_io_thread): Fix command type for
404 LINK_COMMAND_SET_IO_THREAD to use synchronous command structure.
405
406 * linc2/src/linc-connection.c (link_connection_exec_cnx_unref)
407 (link_connection_unref_unlock), linc2/src/linc-private.h,
408 linc2/src/linc.c (cmd_is_sync) (link_dispatch_command): Move
409 tail_unref of connection to the I/O thread to remove some shutdown
410 races.
411
4122003-10-24 Michael Meeks <michael@ximian.com>
413
414 * src/linc.c (link_set_io_thread): don't allocate
415 the cmd, for the synchronous command - just use
416 the stack; thanks to Sebastian Rittau.
417
4182003-10-10 Michael Meeks <michael@ximian.com>
419
420 * src/linc-connection.c
421 (link_connections_close): implement, and
422 warn less.
423
424 * src/linc.c (link_io_thread_fn): close
425 connections on IO thread exit.
426
4272003-10-09 Michael Meeks <michael@ximian.com>
428
429 * src/linc.c (link_set_io_thread): only spew
430 warning with debug enabled.
431
4322003-08-22 Michael Meeks <michael@ximian.com>
433
434 * src/cleanup.c (read_sockets): cope with opendir
435 failure: from Debian patch.
436
4372003-08-12 Michael Meeks <michael@ximian.com>
438
439 * src/linc-source.c: staticize linc_source_watch_funcs.
440
4412003-08-11 Michael Meeks <michael@ximian.com>
442
443 * Version 2.7.6
444
4452003-07-30 Michael Meeks <michael@ximian.com>
446
447 * src/linc-protocols.c (link_protocol_get_sockinfo_irda)
448 (link_protocol_get_sockaddr_irda): bin.
449 (irda_getnameinfo, irda_getaddrinfo, irda_find_device): bin.
450
4512003-07-29 Michael Meeks <michael@ximian.com>
452
453 * src/linc.c (link_mutex_is_locked): substantially
454 disable it except for GLIBC systems that have sensible
455 pthreads impls.
456
4572003-07-15 Michael Meeks <michael@ximian.com>
458
459 * src/linc-connection.c (queue_free): re-order to
460 fix warnings - thanks to Damien Carbery.
461
4622003-07-15 Michael Meeks <michael@ximian.com>
463
464 * Version 2.7.3
465
4662003-07-14 Michael Meeks <michael@ximian.com>
467
468 * src/linc-connection.c (link_connection_state_changed_T_R):
469 free the write queue on disconnect.
470
4712003-07-11 Michael Meeks <michael@ximian.com>
472
473 * src/linc-connection.c (link_connection_wait_connected_T): split
474 (link_connection_wait_connected): from here.
475 (link_connection_try_reconnect): impl.
476 (link_connection_from_fd_T): free previous values.
477 (link_connection_broken_idle): unset inhibit_reconnect.
478 (link_connection_state_changed_T_R): set inhibit_reconnect.
479
4802003-07-10 George Lebl <jirka@5z.com>
481
482 * src/linc-connection.c
483 (link_connection_remove_broken_cb): fix leak.
484
4852003-07-09 Michael Meeks <michael@ximian.com>
486
487 * test/test-linc.c (test_connected): impl.
488
489 * src/linc-connection.c (link_connection_wait_connected):
490 use link_wait, and work for threading cases.
491
492 * src/linc.c (link_wait, link_signal): impl.
493
4942003-07-08 Michael Meeks <michael@ximian.com>
495
496 * src/linc.c (link_set_io_thread): move set of
497 (link_exec_set_io_thread): is_io_in_thread to here - so we
498 can't race elsewhere.
499
5002003-06-29 Dave Camp <dave@ximian.com>
501
502 * src/linc-connection.c (link_connection_broken_idle): Pass
503 bc->user_data to the callback rather than l->data.
504
5052003-06-28 Dave Camp <dave@ximian.com>
506
507 * src/linc-connection.c (link_connection_remove_broken_cb): Fixed
508 the g_slist_delete_link() call.
509
5102003-06-24 Michael Meeks <michael@ximian.com>
511
512 * src/linc-connection.c
513 (link_connection_add_broken_cb, link_connection_remove_broken_cb):
514 impl. so we can emit 'broken' at idle.
515 (link_connection_broken_idle): impl.
516 (link_connection_finalize): upd.
517 (link_connection_state_changed_T_R): upd.
518
5192003-06-19 Gustavo J. A. M. Carneiro <gustavo@users.sourceforge.net>
520
521 * include/linc/linc-config.h: Removed this file; it is generated
522 from linc-config.h.in.
523
5242003-06-09 Michael Meeks <michael@ximian.com>
525
526 * src/linc-connection.c
527 (link_connection_class_state_changed): fold this into
528 (link_connection_state_changed_T): here, so we can call
529 the sub-classed impl. without the lock held.
530 (link_connection_class_init): upd.
531 (link_connection_state_changed_T_R): rename & drop lock.
532
5332003-06-04 Michael Meeks <michael@ximian.com>
534
535 * src/linc-connection.c (link_connection_initiate):
536 fix a truly stupid list traversal bug.
537
5382003-06-04 Michael Meeks <michael@ximian.com>
539
540 * src/linc-connection.c
541 (link_connection_exec_set_condition): only take lock
542 if not immediate.
543 (link_connection_unref_T_): impl.
544 (link_connection_exec_set_condition): use it in
545 the immediate case.
546 (link_connection_unref_unlock): split out from
547 (link_connection_unref): here, and use all over.
548
549 * src/linc.c (link_dispatch_command): add / propagate
550 the immediate flag.
551
552 * src/linc-source.c (link_io_add_watch_fd):
553 always add to the main_source in non thread_io mode.
554 (link_watch_unlisten): beef up.
555
556 * src/linc-protocols.c,
557 * test/test-linc.c: fix Linc->Link sanfu's -
558 autotools dependency tracking gets progressively
559 more wonderful.
560
5612003-06-03 Michael Meeks <michael@ximian.com>
562
563 * src/*.[ch]: update to get_thread_safe.
564
565 * src/linc.c (link_get_threaded): bin it.
566 (link_thread_io, link_thread_safe): replace
567 with these.
568 (link_mutex_new): bin link_mutex_new_called etc.
569 (link_main_idle_add): bin - unused.
570 (link_main_get_loop): bin it.
571
572 * src/linc-connection.c (queue_flattened_T_R):
573 only update the poll if we didn't have a queue
574 already; remove assert.
575
5762003-06-03 Michael Meeks <michael@ximian.com>
577
578 * src/linc-source.c (link_watch_unlisten): split
579 (link_io_remove_watch): from here.
580 (link_watch_move_io): impl.
581
582 * src/linc.c (linc_exec_set_io_thread):
583 call the hooks.
584
585 * src/linc-connection.c
586 (link_connections_move_io_T): impl.
587
588 * src/linc-server.c: s/cnx/srv/ for servers.
589 (link_server_dispose, link_server_setup): manage
590 server_list. (link_servers_move_io_T): impl.
591
592 * src/linc-connection.c
593 (link_connection_initiate_list): check was_initiated.
594 Track all connections on cnx_list.
595 (link_connection_from_fd_T): prepend to list here.
596 (link_connection_initiate): and not here.
597
5982003-06-03 Michael Meeks <michael@ximian.com>
599
600 * src/linc-server.c
601 (link_server_accept_connection): upd.
602
603 * src/linc-connection.c
604 (link_connection_initiate): internalize and rename
605 to (link_connection_do_initiate).
606 (link_connection_initiate): rename from initiate_list.
607
608 * src/linc.c (link_init): upd.
609 (link_lock, link_unlock): face reality -
610 a global lock for everything.
611
612 * src/linc-connection.c
613 (_link_connection_thread_init): bin it.
614
615 * src/linc.c (cmd_is_sync): impl.
616 (link_exec_command): impl. sync methods.
617 (link_init): create condition.
618 (linc_exec_set_io_thread): stub.
619 (link_set_io_thread): stub.
620
6212003-06-02 Michael Meeks <michael@ximian.com>
622
623 * test/test-linc.c (verify_addr_is_loopback):
624 don't fail with loopback reverselookup.
625
626 * src/linc-source.c (link_io_add_watch):
627 bin / privatize, all done by fd now.
628 (link_io_remove_watch): privatize.
629
630 * src/linc.c: bin deprecated bits.
631 (link_set_threaded): bin.
632
6332003-05-31 Michael Meeks <michael@ximian.com>
634
635 * src/Makefile.am (noinst_LTLIBRARIES): don't
636 install the library (doh).
637
6382003-05-23 Michael Meeks <michael@ximian.com>
639
640 * src/linc-connection.c: add _R suffix to methods,
641 assuming a reference is held.
642 (linc_connection_from_fd_T): split from.
643 (linc_connection_from_fd): here.
644 (linc_connection_initiate): use it.
645 (linc_connection_class_init): don't create locks here
646 (_linc_connection_thread_init): do them here.
647
648 * src/linc.c (linc_init): use it.
649
650 * src/linc.c (linc_object_unref, linc_object_ref),
651 (linc_object_get_mutex): deprecated
652 (linc_idle_unref, linc_fast_unref): bin.
653
654 * src/linc-connection.c (linc_connection_unref)
655 (linc_connection_ref): handle weak refs nicely.
656 (linc_connection_initiate_list): impl.
657
6582003-05-22 Michael Meeks <michael@ximian.com>
659
660 * src/linc-connection.c (queue_signal_T): drop lock
661 over the signal emission.
662 (linc_connection_class_state_changed): ditto.
663 (linc_connection_exec_set_condition): actually use
664 the passed in I/O condition. (thanks AlexL)
665
6662003-05-21 Michael Meeks <michael@ximian.com>
667
668 * src/linc-connection.c (linc_connection_io_handler):
669 drop the lock over the handle_input emission.
670 (linc_connection_state_changed_T): split out from
671 (linc_connection_state_changed): here & upd.
672 Add a _T suffix to lots of methods that assume the
673 lock is held.
674 (linc_connection_exec_disconnect): clean.
675 (linc_connection_read): take / release the cnx. lock.
676
677 * src/linc.c (linc_in_io_thread): fix horrors.
678 (linc_object_unref): use it instead of the same hack;
679 thanks to Alex L.
680
6812003-05-12 Gustavo J. A. M. Carneiro <gustavo@users.sourceforge.net>
682
683 * MAINTAINERS: Declare myself as documentation maintainer.
684
6852003-05-03 Michael Meeks <michael@ximian.com>
686
687 * Version 1.1.1
688
6892003-04-29 Michael Meeks <michael@ximian.com>
690
691 * src/linc.c (linc_io_thread_fn): hold lock over
692 wake fd shutdown.
693 (linc_exec_command): if the pipe is shut, then just
694 exec the command in-line (server shutdown condition).
695
6962003-04-28 Gustavo J. A. M. Carneiro <gustavo@users.sourceforge.net>
697
698 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Added --enable-gtk-doc.
699
700 * docs/tmpl/linc-config.sgml: Added this file. Document
701 LINC_SSL_SUPPORT.
702
703 * docs/linc-docs.sgml: Replace header with the docbook-4.1.2/xml
704 one. Removed the "linc" chapter, so that the section entries
705 become toplevel instead. Added the linc-config section.
706
707 * docs/linc-sections.txt: Removed LINCProtocolInfo from section
708 linc-types, since it is already present in section linc-protocol.
709 Made the macro LINC_SSL_SUPPORT, in the linc-config section, appear.
710
711 * autogen.sh: Source system's gnome-autogen.sh instead of doing
712 our own checks.
713
714 * docs/Makefile.am: Replaced the boilerplate gtk-doc makefile
715 section with include $(top_srcdir)/gtk-doc.make.
716 (MKDB_OPTIONS): Added --sgml-mode --output-format=xml.
717
718 * configure.in: Replace the gtk-doc check with the macro
719 GTK_DOC_CHECK.
720
7212003-04-24 Michael Meeks <michael@ximian.com>
722
723 * src/linc-connection.c
724 (linc_connection_wait_connected): impl.
725 (linc_connection_writev): use it here.
726 (linc_connection_io_handler): handle the just connected
727 => start flush queued writes case.
728
7292003-04-21 Michael Meeks <michael@ximian.com>
730
731 * src/linc.c (linc_exec_command): handle EINTR.
732 (linc_exec_command): dispatch commands immediately
733 if not in threading mode.
734 (linc_mainloop_handle_input): split out
735 (linc_dispatch_command): the dispatch.
736
7372003-04-19 Michael Meeks <michael@ximian.com>
738
739 * src/linc-connection.c (linc_connection_exec_disconnect)
740 (queue_flattened, linc_connection_exec_set_condition): impl.
741
742 * src/linc.c (linc_io_thread_fn, linc_init): move
743 the I/O thread instantiation in here.
744 (linc_shutdown, linc_exec_command): impl.
745 (linc_mainloop_handle_input): mux. commands.
746
747 * src/linc-connection.c (linc_connection_read),
748 assert locked on read, re-factor exit.
749 (linc_connection_flush_write_queue): bin locking.
750 (linc_connection_class_init): bin crack-pot complex
751 locking schemes, and go for a big global lock.
752 (linc_connection_finalize): bin lock init/destroy.
753 (linc_connection_flush_write_queue_cb): bin it.
754 (linc_connection_disconnect): impl.
755
756 * src/linc-server.c (linc_server_init, linc_server_handle_io)
757 (linc_server_dispose): bin curious mutex; all happens in I/O
758 thread anyway.
759
760 * src/linc.c (linc_mutex_is_locked): impl. for debug.
761
7622003-04-18 Michael Meeks <michael@ximian.com>
763
764 * src/linc-connection.c (linc_connection_io_handler)
765 (queue_signal): use linc_object_ref/unref.
766 (linc_connection_get_status): impl.
767 (linc_connection_flush_write_queue_cb): lock/unlock cnx.
768 (linc_connection_state_changed): assert unlocked, and in
769 main thread.
770 (linc_connection_from_fd): hold the lock while operating.
771
772 * src/linc-server.c (linc_server_dispose): ditto.
773
7742003-04-16 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
775
776 * configure.in: call AC_PROG_CC earlier. because AM_PROG_LIBTOOL
777 needs it on some platforms.
778
779 * configure.in: call AC_LIBTOOL_WIN32_DLL and add check for
780 arpa/nameser.h and resolv.h.
781
782 * src/Makefile.am: add -no-undefined to liblinc_la_LDFLAGS.
783
784 * src/linc-protocols.c, src/linc-compat.h: make them work even if
785 arpa/nameser.h and resolv.h are not available.
786
787 * src/linc-protocols.c (make_local_tmpdir): disable permission
788 checking on Cygwin.
789
790 * linc-1.1.0/test/test-linc.c (init_tmp): use g_get_user_name()
791 instead of g_getenv("USER").
792
7932003-04-15 Michael Meeks <michael@ximian.com>
794
795 * src/linc-protocols.c (linc_protocol_get_sockinfo_ipv6):
796 consistantly use GETNAMEINFO don't mix GETADDRINFO.
797
7982003-04-13 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
799
800 * src/linc-protocols.c (linc_protocol_get_sockaddr_unix): fix to
801 include path's terminating '\0' into *saddr_len count.
802
8032003-04-10 Michael Meeks <michael@ximian.com>
804
805 * Thanks to mmokrejs@natur.cuni.cz for the
806 excellent report.
807
808 * src/linc-protocols.c
809 (linc_protocol_is_local_ipv46): explicitely
810 cast h_addr_list[n] to a guint8 * to please OSF/1.
811 (in6_addr): break the Mac OS/X brain-damage hack-around,
812 this needs to be specific to Mac only - it was
813 breaking OSF/1.
814
815 * src/linc-connection.c (write_data):
816 cast iovec->iov_base to guchar * for OSF/1
817 True64 Unix.
818
819 * src/linc-debug.h: bin bogus ';' on
820 static inline d_printf fallback.
821
8222003-04-03 Michael Meeks <michael@ximian.com>
823
824 * src/linc-connection.c
825 (linc_connection_flush_write_queue): fix dofus
826 like write locking leak of mine.
827
8282003-04-01 Michael Meeks <michael@ximian.com>
829
830 * src/linc-connection.c
831 (linc_connection_finalize): free write lock
832 here and not in dispose.
833
8342003-03-31 Michael Meeks <michael@ximian.com>
835
836 * src/linc-connection.c
837 (linc_connection_flush_write_queue_cb): only
838 try to flush the write queue if we're not still
839 connecting.
840
841 * src/linc-compat.h: if we don't have UNIX_PATH_MAX it
842 is 100.
843
844 * src/linc-protocols.c (linc_protocol_get_sockaddr_unix):
845 use LINC_UNIX_PATH_MAX, not 64 for the static buffer size
846
8472003-03-29 Michael Meeks <michael@ximian.com>
848
849 * src/linc-connection.c (linc_connection_writev)
850 (linc_connection_init, linc_connection_io_handler)
851 (linc_connection_dispose): use the write_lock mutex
852 to protect the write_queue.
853 (queue_signal): drop it over signal emission (clearly)
854 (linc_connection_flush_write_queue): split out of
855 (linc_connection_io_handler): here.
856
8572003-03-25 Michael Meeks <michael@ximian.com>
858
859 * Version 1.1.0
860
8612003-03-18 Shailesh Mittal <shailesh.mittal@wipro.com>
862
863 * configure.in:
864 Added checks for getaddrinfo() and getnameinfo().
865
866 * src/linc-connection.c (linc_connection_initiate):
867 Modified so now it falls back to IPv4 if IPv6 address
868 is not there.
869
870 * src/linc-protocols.c
871 (linc_protocol_is_local_ipv46):It has been modified
872 in such a fashion that it works for IPv6 addresses as well.
873 gethostbyname doesn't produce right results on all systems.
874 (linc_protocol_get_sockaddr_ipv6):Also modified to work
875 with IPv6 addresses.
876 (linc_protocol_get_sockinfo_ipv46):Signature changed.
877 Added const char *host in place of struct hostent *host as
878 the gethostbyname has been called twice for the same operation.
879 (linc_protocol_get_sockinfo_ipv4):char *hname is passed
880 in place of struct hostent to call for get_sockinfo_ipv46.
881 (linc_protocol_get_sockinfo_ipv6):Modified to support IPv6
882 addresses and char * is passed to linc_protocol_is_local_ipv46
883 in place of struct hostent *.
884
8852002-10-30 Michael Meeks <michael@ximian.com>
886
887 * src/linc-source.c (linc_io_add_watch_fd):
888 don't add a watch to the main thread if
889 running in threaded mode.
890
891 * src/linc.c (linc_get_threaded): impl.
892 (linc_set_threaded): spew deprecated
893 warnings.
894
895 * docs/linc-decl-list.txt: don't mention
896 linc_set_threaded.
897
8982002-10-31 Michael Meeks <michael@ximian.com>
899
900 * include/linc/linc-source.h: add.
901
902 * include/linc/Makefile.am: add linc-source.h
903
904 * src/linc-source.c
905 (linc_source_set_condition): upd. prototype.
906 (linc_source_create_watch): upd & expose.
907 (linc_io_remove_watch): upd.
908 (linc_watch_set_condition): upd.
909
9102002-11-29 Michael Meeks <michael@ximian.com>
911
912 * src/linc-source.c (linc_io_add_watch):
913 don't add a main watch if threaded.
914 (linc_io_remove_watch): don't destroy a
915 NULL main_source.
916
917 * src/linc.c (linc_object_unref): do an
918 idle unref (in the linc mainloop) if we're
919 threaded, and it's the last ref.
920 (linc_fast_unref): split.
921 (linc_idle_unref): impl.
922
9232002-10-24 Michael Meeks <michael@ximian.com>
924
925 * src/linc.c (linc_object_unref): handle the
926 last ref sanely, so we don't deadlock doing
927 subsequent unrefs.
928
9292003-01-21 Michael Meeks <michael@ximian.com>
930
931 * src/linc-server.c (linc_server_setup):
932 setup the listening socket as non-blocking [!]
933 (linc_server_handle_io): quite why we emit
934 a signal in this case is rather beyond me,
935 hopefully that code-path is somewhat tested.
936
9372003-01-09 Michael Meeks <michael@ximian.com>
938
939 * configure.in: bump version to 1.1.0
940
941 * Branch for gnome-2-2
942
9432002-12-28 Michael Meeks <michael@ximian.com>
944
945 * Version 0.7.1
946
9472002-12-09 Michael Meeks <michael@ximian.com>
948
949 * src/linc-protocols.c (linc_protocol_get_sockaddr_unix):
950 finally - scuppered by my own undefined test in gcc ;-)
951
9522002-12-09 Laurent Vivier <Laurent.Vivier@bull.net>
953
954 * src/linc-connection.c (LINC_IOV_MAX): re-order
955 mess of compatibility evilness to move glibc's
956 UIO_MAXIOV down, since this is something else on
957 AIX (which has IOV_MAX).
958
9592002-11-21 Dan Mills <thunder@ximian.com>
960
961 * configure.in: fix two typoes: pango -> linc, and change spaces
962 to a tab in the IFS assignment.
963
9642002-11-21 Dan Mills <thunder@ximian.com>
965
966 * configure.in: fix gtk-doc version check.
967
9682002-11-02 Michael Meeks <michael@ximian.com>
969
970 * test/test-linc.c
971 (test_broken_cnx_handle_input): disconnect
972 on fatal error.
973
9742002-10-24 Michael Meeks <michael@ximian.com>
975
976 * src/linc.c (linc_object_unref): handle the
977 last ref sanely, so we don't deadlock doing
978 subsequent unrefs.
979
9802002-10-18 Michael Meeks <michael@ximian.com>
981
982 * Version 0.7.0
983
9842002-10-14 Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
985
986 * src/linc-protocols.c (linc_set_tmpdir),
987 (linc_protocol_get_sockaddr_unix),
988 (linc_get_tmpdir): use dynamic allocation for
989 linc_tmpdir to avoid PATH_MAX issues.
990
9912002-09-24 Michael Meeks <michael@ximian.com>
992
993 * configure.in: bump to 0.7.0 - odd, and bigger.
994
995 * src/linc-connection.c (linc_connection_read):
996 don't be daft, don't emit a signal on fatal IO
997 error at 0 read EOF, or we'll get into locking
998 hell elsewhere.
999
10002002-08-23 Elliot Lee <sopwith@redhat.com>
1001
1002 * src/linc-protocols.c (linc_protocol_get_sockaddr_ipv4): Don't
1003 turn on IPv6 name resolution when we are trying to resolve an IPv4
1004 host name - instead, turn it off. Also try to make use of all
1005 addresses that gethostbyname returns, not just the first. (Fixes a
1006 bug with connecting to a host that has both IPv6 and IPv4
1007 addresses.)
1008
10092002-08-23 Michael Meeks <michael@ximian.com>
1010
1011 * Version 0.5.3
1012
10132002-08-18 Havoc Pennington <hp@pobox.com>
1014
1015 * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
1016 both automake 1.6 and 1.4 installed get the right automake. Means
1017 compilation from CVS will now require the latest automake 1.4
1018 release, or manually creating symlinks called "automake-1.4" and
1019 "aclocal-1.4"
1020
10212002-08-05 Laurent Vivier <Laurent.Vivier@bull.net>
1022
1023 * include/linc/linc-connection.h: sanitize remote_info
1024 to gchar *
1025
10262002-08-05 Michael Meeks <michael@ximian.com>
1027
1028 * Version 0.5.2
1029
10302002-07-31 jacob berkman <jacob@ximian.com>
1031
1032 * src/linc-connection.c (LINC_IOV_MAX): bump to 1024 on os x, as
1033 the macros isn't defined unless we are defining KERNEL, which we
1034 aren't
1035
10362002-07-31 Michael Meeks <michael@ximian.com>
1037
1038 * test/test-linc.c (test_hosts_lookup): regression test.
1039 (verify_addr_is_loopback): split out.
1040
1041 * configure.in: add inet_pton check.
1042
1043 * src/linc-protocols.c (linc_protocol_get_sockaddr_ipv4):
1044 do a dotted quad type lookup first.
1045 (linc_protocol_get_sockaddr_ipv6): add inet_pton - raw IPv6
1046 addr translation
1047
1048 * src/linc-compat.h (INADDR_NONE): for broken systems.
1049
10502002-07-25 Yanko Kaneti <yaneti@declera.com>
1051
1052 * test/test-linc.c: include "linc-compat.h" for ehm.. compatibilty.
1053
10542002-07-24 Michael Meeks <michael@ximian.com>
1055
1056 * Version 0.5.1
1057
10582002-06-19 Michael Meeks <michael@ximian.com>
1059
1060 * test/test-linc.c (test_local_ipv4): upd.
1061 (test_hosts_lookup, test_host): impl
1062
1063 * src/linc-protocols.c (linc_get_local_hostname):
1064 rename from get_local_hostname & make module public.
1065
1066 * src/linc-server.c (linc_server_setup): upd. to use it.
1067
1068 * src/linc-connection.c
1069 (linc_connection_initiate, linc_close_fd): handle EINTR
1070 on close.
1071
1072 * src/linc-protocols.c (irda_find_device),
1073 (linc_protocol_destroy_addr),
1074 (linc_protocol_destroy_cnx): ditto.
1075
1076 * src/linc-server.c (linc_server_dispose),
1077 (linc_server_accept_connection): ditto.
1078
1079 * src/linc-protocols.c (irda_getaddrinfo):
1080 use g_strncpy not strcpy.
1081
10822002-06-18 Michael Meeks <michael@ximian.com>
1083
1084 * test/test-linc.c (test_local_ipv4): beef up &
1085 (test_local_ipv6): split out of
1086 (test_local): here.
1087
1088 * src/linc-protocols.c
1089 (linc_protocol_get_sockaddr_ipv4): upd.
1090 (ipv4_addr_from_addr): impl.
1091 (LINC_RESOLV_CLEAR_IPV6): kill - horrible,
1092 vile, out of spec. hack.
1093 (linc_protocol_get_sockinfo_ipv46): upd.
1094 (linc_protocol_is_local_ipv46): re-re-write.
1095
10962002-06-17 Michael Meeks <michael@ximian.com>
1097
1098 * src/linc-protocols.c
1099 (linc_protocol_get_sockaddr_unix): beef up the
1100 length of the linc socket name slightly.
1101 (linc_protocol_is_local_ipv46): fix, so it works.
1102 (cleanup_sweep): remove.
1103 (linc_protocol_get_sockaddr_unix): hack cleanup
1104 out of here.
1105
11062002-06-12 Michael Meeks <michael@ximian.com>
1107
1108 * configure.in: bump version to 0.5.1
1109
1110 * src/linc-connection.c
1111 (linc_connection_read): add paranoid assertion.
1112
11132002-06-12 Michael Meeks <michael@ximian.com>
1114
1115 * src/linc-protocols.c
1116 (linc_get_tmpdir): implement new API in
1117 accordance with release team approval for use
1118 in bonobo-activation, for it's locking / IOR
1119 exchange mechanism.
1120
1121 * src/linc-connection.c
1122 (linc_connection_writev): split out
1123 (linc_connection_should_block): this.
1124
11252002-06-06 James M. Cape <jcape@ignore-your.tv>
1126
1127 * include/linc/linc-connection.h
1128 (LINC_CONNECTION_CLASS): fix typo in macro #84352
1129
11302002-05-27 Michael Meeks <michael@ximian.com>
1131
1132 * Version 0.5.0
1133
11342002-05-24 Michael Meeks <michael@ximian.com>
1135
1136 * src/linc.c (linc_init): do a plain g_type_init
1137 without adding the debug_flags, they're not
1138 helping us enough for the pain.
1139
11402002-05-21 Michael Meeks <michael@ximian.com>
1141
1142 * src/cleanup.c: make it work for the simple
1143 cases for now.
1144
11452002-05-21 Michael Meeks <michael@ximian.com>
1146
1147 * src/Makefile.am: add linc-cleanup-sockets.
1148
1149 * src/cleanup.c: add.
1150
1151 * src/linc-connection.c
1152 (linc_connection_writev): make status an int,
1153 so we return the enum more pleasantly.
1154
11552002-05-20 Michael Meeks <michael@ximian.com>
1156
1157 * Version 0.1.22
1158
11592002-05-17 Jacob Berkman <jacob@ximian.com>
1160
1161 * src/linc-protocols.c: check for RES_USE_INET6 for
1162 OS/X. define in6addr_any for broken Mac OS/X's.
1163
11642002-05-09 Michael Meeks <michael@ximian.com>
1165
1166 * src/linc-protocols.c: fix 'extern' static linc_protocols
1167 bug #80955 - thanks Jean-Pierre Dion
1168
11692002-04-18 Michael Meeks <michael@ximian.com>
1170
1171 * src/Makefile.am: add G_DISABLE_DEPRECATED
1172
11732002-04-15 Michael Meeks <michael@ximian.com>
1174
1175 * Version 0.1.21
1176
11772002-04-15 Michael Meeks <michael@ximian.com>
1178
1179 * src/linc-private.h: fix prototypes,
1180 s/socklen_t/LincSockLen/
1181
11822002-04-11 Michael Meeks <michael@ximian.com>
1183
1184 * test/Makefile.am (test_linc_LDADD):
1185 add various libs.
1186
11872002-04-10 Michael Meeks <michael@ximian.com>
1188
1189 * src/*,
1190 * docs/*: update
1191
11922002-04-09 Michael Meeks <michael@ximian.com>
1193
1194 * src/linc-private.h: hoist SSL includes,
1195 (thanks to Colin Campbell).
1196
11972002-04-08 Michael Meeks <michael@ximian.com>
1198
1199 * src/linc-protocols.[ch],
1200 * src/linc-server.c (linc_server_setup): use
1201 LincSockLen instead of socklen_t so that we can
1202 build on systems without it, (thanks to Garth Pearce).
1203
1204 * src/linc-compat.h: hide the evil compat mess into here.
1205
1206 * src/linc-server.c: include linc-hacks.h
1207
1208 * test/test-linc.c
1209 (test_blocking_cnx_handle_input),
1210 (test_blocking_cnx_handle_input): use
1211 guint32 not glong.
1212
1213 * configure.in: use --with-openssl #77962
1214
12152002-04-08 Michael Meeks <michael@ximian.com>
1216
1217 * src/linc-protocols.c (cleanup_sweep): disable,
1218 it seems that this is a source of evil lockups;
1219 really we need to do this in a non-blocking way,
1220 and idly unlink things that look bad.
1221
12222002-04-02 Michael Meeks <michael@ximian.com>
1223
1224 * src/linc-protocols.c (cleanup_sweep): impl to
1225 solve the leftover unix domain socket problem.
1226 (linc_protocol_get_sockaddr_unix): do the sweep.
1227
12282002-03-21 Michael Meeks <michael@ximian.com>
1229
1230 * Version 0.1.20
1231
12322002-03-21 Michael Meeks <michael@ximian.com>
1233
1234 * src/linc-server.c (linc_server_handle_io): fix
1235 warning spew.
1236
1237 * src/linc-protocols.c (linc_protocol_destroy_addr):
1238 check family for AF_UNIX.
1239
12402002-03-20 Gregory Leblanc <gleblanc@linuxweasel.com>
1241
1242 * configure.in: Adding missing AC_SUBST
1243 * linc.spec.in: rewrite
1244
12452002-03-20 Michael Meeks <michael@ximian.com>
1246
1247 * src/linc-protocols.c (linc_protocol_destroy_cnx): impl.
1248 (linc_protocol_destroy_saddr): impl with nasty hacks for UDS.
1249
1250 * src/linc-server.c (linc_server_dispose): use it.
1251 (linc_server_setup): on error unlink the UDS & fix fd
1252 leak.
1253
12542002-03-20 Michael Meeks <michael@ximian.com>
1255
1256 * src/linc-server.c (linc_server_accept_connection):
1257 always initialize the connection - thanks again Havoc.
1258
1259 * src/linc-connection.c (linc_connection_initiate):
1260 fix fd leak - thanks Havoc.
1261
12622002-03-04 Mark McLoughlin <mark@skynet.ie>
1263
1264 * configure.in: Version 0.1.19
1265
12662002-02-26 Michael Meeks <michael@ximian.com>
1267
1268 * src/linc-connection.c
1269 (linc_connection_class_state_changed): only emit
1270 'broken' when the state actually changes - ie. once.
1271
12722002-02-17 Michael Meeks <michael@ximian.com>
1273
1274 * src/linc-server.c (linc_server_accept_connection):
1275 close the fd in case linc_connection_from_fd might
1276 fail some day.
1277
12782002-02-11 Mark McLoughlin <mark@skynet.ie>
1279
1280 * configure.in: Version 0.1.18
1281
12822002-02-11 Michael Meeks <michael@ximian.com>
1283
1284 * configure.in: update OpenSSL check, and default to no
1285 OpenSSL checking - OpenSSL has a pants license, do not
1286 use it.
1287
12882002-02-11 Mark McLoughlin <mark@skynet.ie>
1289
1290 * configure.in: Version 0.1.17
1291
12922002-02-06 Michael Meeks <michael@ximian.com>
1293
1294 * src/linc-protocols.c: define NI_MAXHOST to
1295 MAXHOSTNAMELEN if we just can't find it, include
1296 sys/param.h explicitely for that, define NI_MAXSERV
1297 to 64 in case we can't get that either.
1298
12992002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1300
1301 * src/linc-connection.c (write_data): Do not use
1302 WRITEV_IOVEC_LIMIT as the maximal iovec count, but determine it by
1303 some architecture dependent preprocessor constants. This prevents
1304 using the fallback implementation of writev. (if the count is too
1305 big, the kernel returns an error and libc might provide a fallback
1306 by alloca'ing the necessary mem, copying the iovec's content there
1307 and writing that out, which in turn might produce a segmentation
1308 fault for lots of data on a small stacks, like in multithreaded
1309 programs)
1310
1311 * configure.in, acconfig.h: Removed the test for
1312 WRITEV_IOVEC_LIMIT form configure.in and WRITEV_IOVEC_LIMIT from
1313 acconfig.h.
1314
13152002-01-28 Mark McLoughlin <mark@skynet.ie>
1316
1317 * configure.in: Version 0.1.16
1318
13192002-01-21 Michael Meeks <michael@ximian.com>
1320
1321 * src/linc-connection.c (write_data): don't signal
1322 and return the no. of bytes written.
1323 (linc_connection_writev): map to the return enum.
1324 (linc_connection_io_handler): move the queue signal
1325 here after we've updated the queue list.
1326 (write_data): stop running over the end of the
1327 array.
1328
13292002-01-18 Mark McLoughlin <mark@skynet.ie>
1330
1331 * src/linc-connection.c: (linc_connection_read): disconnect
1332 on receipt of EOF.
1333
1334 * test/test-linc.c: (broken_cb), (test_server_create_connection),
1335 (create_client), (test_broken_cnx_handle_input),
1336 (test_broken_cnx_class_init), (test_get_broken_cnx_type),
1337 (test_broken), (test_blocking_cnx_handle_input),
1338 (test_blocking_cnx_class_init), (test_get_blocking_cnx_type),
1339 (test_blocking): re-jig the 'broken' test to test this code
1340 path.
1341
13422002-01-17 Michael Meeks <michael@ximian.com>
1343
1344 * Version 0.1.15
1345
1346 * src/linc-protocols.c: remove debug.
1347
1348 * Version 0.1.14
1349
13502002-01-17 Michael Meeks <michael@ximian.com>
1351
1352 * configure.in: bump version to 0.1.14 for ORBit2
1353 dependency / build reasons.
1354
1355 * test/test-linc.c (test_protos): impl.
1356 (main): call it.
1357
13582002-01-16 Michael Meeks <michael@ximian.com>
1359
1360 * src/linc-protocols.c (get_local_hostname): impl. so
1361 we can call it lots.
1362 (linc_protocol_get_sockinfo_ipv46): upd.
1363 (linc_protocol_get_sockinfo_unix): upd.
1364 (linc_protocol_is_local): impl.
1365 (linc_protocol_unix_is_local): impl.
1366 (linc_protocol_is_local_ipv46): impl.
1367
1368 * src/linc-server.c (linc_server_accept_connection):
1369 check for remote connections - if in local only mode,
1370 using new is_local API.
1371
1372 * include/linc/linc-protocol.h: add is_local.
1373
1374 * include/linc/linc-types.h: add local only flag.
1375
13762002-01-17 Laszlo Peter <laca@ireland.sun.com>
1377
1378 * src/linc-connection.c (write_data): fix writev loop conditions
1379 when nvecs > WRITEV_IOVEC_LIMIT.
1380
13812002-01-10 Roland Juelich <rj@atecom.com>
1382
1383 * src/linc-source.c (linc_io_add_watch): create our own
1384 LincWatch and pass the channel on to
1385 (linc_source_create_watch): here, store the channel for
1386 the callback.
1387
1388 * src/linc-private.h: store GIOChannel in watch for use
1389 in source dispatcher.
1390
13912002-01-09 Michael Meeks <michael@ximian.com>
1392
1393 * Version 0.1.13
1394
13952002-01-04 Dave Camp <dave@ximian.com>
1396
1397 * src/linc-connection.c (linc_connection_class_init): Use the
1398 'blocking' struct member for the blocking signal rather than the
1399 'broken' member.
1400
14012002-01-04 Michael Meeks <michael@ximian.com>
1402
1403 * src/linc-source.c (linc_io_remove_watch): clobber
1404 the source so we can't get any events on the source -
1405 even if glib does strange things.
1406
1407 * src/linc-server.c (linc_server_dispose): re-order
1408 the watch removal process.
1409
1410 * test/test-linc.c (test_blocking): release the
1411 write options.
1412
1413 * src/linc-source.c (linc_source_finalize): impl.
1414 for debug.
1415
14162002-01-04 Michael Meeks <michael@ximian.com>
1417
1418 * src/linc-connection.c (linc_connection_io_handler):
1419 allow handling both input and output in the same poll,
1420 to stop re-enterancy hell in the ORB.
1421 (queue_signal): special case a '0' byte max_buffer ==
1422 no maximum, thanks to Dave Camp.
1423
14242002-01-03 Michael Meeks <michael@ximian.com>
1425
1426 * Version 0.1.12
1427
14282002-01-03 Michael Meeks <michael@ximian.com>
1429
1430 * src/linc-server.c (linc_server_setup): set
1431 FD_CLOEXEC - on the server's connection.
1432
14332002-01-03 Laszlo Peter <laca@ireland.sun.com>
1434
1435 * configure.in: add check for -lresolv
1436
14372001-12-31 Michael Meeks <michael@ximian.com>
1438
1439 * src/linc-connection.c
1440 (linc_connection_io_handler): continue writing the queue
1441 if we didn't flush it all (doh).
1442
1443 * test/test-linc.c (test_blocking),
1444 (blocking_cb, knobble_watch): impl.
1445 (test_server_create_connection): impl.
1446 (test_cnx_handle_input): impl.
1447
1448 * src/linc-connection.c: (queue_signal): add ref. guards.
1449 & signal half full buffer as specified.
1450
1451 * src/linc-server.c, src/linc-source.c,
1452 * src/linc-connection.c: move private struct defs into
1453
1454 * src/linc-private.h: here.
1455
1456 * test/Makefile.am: upd. include path.
1457
1458 * test/test-linc.c (create_server),
1459 (create_client, test_broken): split out of (main).
1460
14612001-12-31 Michael Meeks <michael@ximian.com>
1462
1463 * configure.in: bump version to 0.1.12
1464
14652001-12-28 Michael Meeks <michael@ximian.com>
1466
1467 * src/linc-connection.c (calc_size): split out of
1468 (queue_flattened): here.
1469
1470 * include/linc/linc-server.h,
1471 * include/linc/linc-connection.h
1472 (LINC_IS_CONNECTION): re-write macros, slower,
1473 but functional.
1474
1475 * src/linc-connection.c (linc_connection_class_init):
1476 add the 'blocking' signal.
1477 (queue_signal): impl.
1478 (linc_connection_class_state_changed): free the queue
1479 on disconnect.
1480 (linc_connection_io_handler): do an unchecked class
1481 cast for speed.
1482
14832001-12-27 Michael Meeks <michael@ximian.com>
1484
1485 * src/linc-connection.c (linc_connection_write):
1486 re-express in terms of writev - this should always have
1487 been so.
1488 (linc_connection_writev): fix iov_base arithemetic.
1489 merge in the SSL code from writev.
1490 (queue_flattened, queue_free): impl.
1491 (linc_connection_dispose): release the queue.
1492 (write_data): split this out of
1493 (linc_connection_writev): here & upd to handle queue.
1494 (linc_connection_connected): rename to
1495 (linc_connection_io_handler): this.
1496 (linc_source_add): upd.
1497 (queued_write_free): impl.
1498 (linc_connection_writev): don't belt round a
1499 non-blocking loop on EAGAIN even if we block.
1500
15012001-12-19 Michael Meeks <michael@ximian.com>
1502
1503 * src/linc-server.c (linc_server_setup): upd.
1504
1505 * src/linc-connection.c: kill wasteful GIOChannel.
1506 (linc_source_add): upd.
1507 (linc_connection_dispose): upd.
1508 (linc_connection_from_fd): upd.
1509 (linc_source_unwatch_out): kill.
1510 (linc_connection_connected): upd.
1511 (linc_connection_class_state_changed): upd.
1512
1513 * src/linc-source.c: add.
1514 (linc_io_add_watch_fd): impl.
1515 (linc_watch_set_condition): impl.
1516
1517 * src/linc.c (linc_io_add_watch): move this
1518
15192001-12-14 Roland Juelich <rj@atecom.com>
1520
1521 * src/linc-server.c (linc_server_setup): if we are
1522 passed local_host_info, then use it instead.
1523
15242001-12-14 Michael Meeks <michael@ximian.com>
1525
1526 * src/linc-protocols.c: include netdb.h if we're
1527 missing some NI_ defines.
1528
15292001-12-14 David Haverkamp <dahaverk@rockwellcollins.com>
1530
1531 * src/linc-protocols.c: include arpa/nameser.h before
1532 resolv.h for Solaris systems.
1533
15342001-12-11 Michael Meeks <michael@ximian.com>
1535
1536 * Version 0.1.11
1537
15382001-12-08 Michael Meeks <michael@ximian.com>
1539
1540 * src/linc-connection.c (linc_connection_write),
1541 (linc_connection_writev): handle the connection
1542 dying in mid-write, it seems EAGAIN gets fired to
1543 distinguish from a 0 length write == an error conditon (?)
1544
15452001-12-07 Michael Meeks <michael@ximian.com>
1546
1547 * src/linc-connection.c
1548 (linc_connection_class_state_changed): change status
1549 early so we're consistant by the time 'broken' is
1550 emitted.
1551
15522001-12-06 Laszlo Peter <laca@ireland.sun.com>
1553
1554 * configure.in: Fix detection of WRITEV_IOVEC_LIMIT.
1555
15562001-12-05 Kristian Rietveld <kris@gtk.org>
1557
1558 * src/linc-protocols.c: Move down resolve.h for better
1559 FreeBSD build.
1560
15612001-12-01 Theo van Klaveren <t.vanklaveren@student.utwente.nl>
1562
1563 * src/linc-protocols.c: Add <netinet/in.h> to includes.
1564 Fixes build on FreeBSD.
1565
15662001-11-26 Michael Meeks <michael@ximian.com>
1567
1568 * Version 0.1.10
1569
15702001-11-23 Michael Meeks <michael@ximian.com>
1571
1572 * src/linc.c (linc_io_add_watch): fixup debugging.
1573
15742001-11-25 Havoc Pennington <hp@redhat.com>
1575
1576 * src/Makefile.am (liblinc_la_SOURCES): add linc-debug.h
1577
15782001-11-22 Michael Meeks <michael@ximian.com>
1579
1580 * src/linc.c (linc_io_add_watch): remove
1581 g_warning debug; doh.
1582
15832001-11-22 Michael Meeks <michael@ximian.com>
1584
1585 * src/linc-connection.c (linc_source_unwatch_out): fix
1586 brainless not listening for input.
1587
1588 * src/linc.c (linc_io_add_watch): beef up
1589 watch debug.
1590
1591 * src/linc-connection.c (linc_source_add): impl.
1592 (linc_connection_class_state_changed),
1593 (linc_source_unwatch_out): use it.
1594
1595 * src/linc-private.h (LINC_IN_CONDS,
1596 LINC_ERR_CONDS): move here.
1597
1598 * src/linc-connection.c: update IO conditions.
1599
1600 * src/linc-server.c
1601 (linc_server_handle_io): accept G_IO_PRI
1602 (linc_server_handle): kill, not used.
1603 (linc_server_setup): take note of G_IO_PRI
1604
1605 * src/linc-protocols.c
1606 (linc_protocol_get_sockaddr_unix): make the UDS name
1607 more random; include the pid when debugging.
1608
1609 * src/linc-connection.c: instrument more.
1610
1611 * src/linc-server.c (linc_server_setup): convert
1612 to new debug framework.
1613
1614 * src/linc-debug.h: add.
1615
16162001-11-22 Michael Meeks <michael@ximian.com>
1617
1618 * src/linc-connection.c
1619 (linc_connection_connected): split out re-connect
1620 (linc_source_unwatch_out): this to clarify.
1621 add dprintf debugging throught.
1622
16232001-11-19 Michael Meeks <michael@ximian.com>
1624
1625 * src/linc.c (linc_object_get_mutex):
1626 (linc_init): setup the lifecycle mutex.
1627 (linc_object_ref, linc_main_get_loop),
1628 (linc_object_unref): impl - sucky locking
1629 for now.
1630
1631 * src/linc-server.c (linc_server_finalize),
1632 (linc_server_init): manage private structure.
1633 Privatize fd, mutex, tag, connections
1634
1635 * src/linc-connection.c (linc_connection_finalize),
1636 (linc_connection_init): manage private structure.
1637 Privatize fd, tag, gioc, ssl.
1638 (linc_connection_initiate): upd.
1639
16402001-11-19 Michael Meeks <michael@ximian.com>
1641
1642 * src/linc-server.c (linc_server_accept_connection):
1643 kill bogus get_sockinfo - we don't need this
1644 information whatsoever.
1645
1646 * src/linc-connection.c (linc_connection_from_fd):
1647 this method has at least 2 totaly bogus arguments,
1648 host, service - the joys of frozen APIs.
1649
1650 * src/linc-connection.c
1651 (linc_connection_dispose): split
1652 (linc_connection_finalize): impl.
1653 (linc_connection_class_init): upd.
1654
16552001-11-18 Miles Lane <miles@megapathdsl.net>
1656
1657 * include/linc/linc-types.h: replace include of
1658 gobject/gobject.h with glib-object.h, due to a
1659 change in gobject/gobject.h that forces an #error
1660 for all direct includes.
1661 This checkin was approved by Havoc.
1662
16632001-11-16 Michael Meeks <michael@ximian.com>
1664
1665 * configure.in: bump ver to 0.1.9
1666
1667 * src/linc-server.c (linc_server_accept_connection):
1668 keep track of the connections we accept - hopefully if
1669 we re-use them, there won't be many.
1670 (linc_server_dispose): protect vs. double dispose &
1671 unref. connections.
1672 (linc_server_finalize): impl.
1673 (linc_server_class_init): hook up.
1674
1675 * src/linc-connection.c (linc_source_remove): remove
1676 bogus self unref.
1677 (linc_connection_dispose),
1678 (linc_connection_class_state_changed): upd.
1679
16802001-11-15 Michael Meeks <michael@ximian.com>
1681
1682 * src/linc-connection.c (linc_connection_from_fd): assign
1683 the protocol.
1684
1685 * src/linc-server.c (linc_server_dispose): protect vs.
1686 double dispose's
1687
16882001-11-13 jacob berkman <jacob@ximian.com>
1689
1690 * docs/Makefile.am (dist-hook): depend on docs being built
1691
1692 * docs/linc-sections.txt:
1693 * docs/linc.types: these files are needed to dist
1694
16952001-11-13 Michael Meeks <michael@ximian.com>
1696
1697 * docs/Makefile.am (IGNORE_HFILES): add config.h, acconfig.h
1698
1699 * src/linc-server.c (linc_server_handle): privatize,
1700 unused & redundant.
1701
1702 * docs/tmpl/linc-types.sgml: document LINC_MUTEX_LOCK /
1703 UNLOCK.
1704
1705 * src/linc-protocols.c (linc_set_tmpdir): fix docs.
1706
1707 * src/linc.c (linc_io_add_watch, linc_io_remove_watch),
1708 (linc_main_iteration, linc_main_pending, linc_mutex_new),
1709 (linc_main_loop_run): document.
1710
17112001-11-13 Michael Meeks <michael@ximian.com>
1712
1713 * docs/linc-sections.txt: remove config, acconfig,
1714 linc-config, linc-private sections.
1715
17162001-11-12 John Fleck <jfleck@inkstain.net>
1717
1718 * added docs/Makefile.am
1719 docs/linc-docs.sgml
1720 docs/tmpl/acconfig.sgml, linc-connection.sgml,
1721 linc-server.sgml, linc-unused.sgml, config.sgml,
1722 linc-private.sgml, linc.sgml, linc-config.sgml,
1723 linc-protocol.sgml, linc-types.sgml
1724 modified ./Makefile.am, configure.in
1725 add gtk-doc build system
1726
17272001-11-12 Michael Meeks <michael@ximian.com>
1728
1729 * src/linc-server.c (linc_server_accept_connection):
1730 set O_NONBLOCK on connections we accept; also set
1731 FD_CLOEXEC - doh.
1732
17332001-11-12 Michael Meeks <michael@ximian.com>
1734
1735 * src/linc-connection.c (linc_connection_read),
1736 (linc_connection_write, linc_connection_writev),
1737 catch and warn on EBADF.
1738
17392001-11-12 Michael Meeks <michael@ximian.com>
1740
1741 * configure.in: bump version to 0.1.8
1742
1743 * src/linc-connection.c
1744 (linc_connection_read): set fatal error on
1745 0 length reads, don't re-enter foolishly in
1746 various places, return bytes_read on EAGAIN,
1747 don't loop re-entering while waiting for
1748 connected.
1749
17502001-11-08 Michael Meeks <michael@ximian.com>
1751
1752 * Version 0.1.7
1753
17542001-11-08 Michael Meeks <michael@ximian.com>
1755
1756 * src/linc.c (linc_io_add_watch): setup sources as
1757 recursive sources - so we can recurse !
1758 (linc_main_iteration, linc_io_remove_watch),
1759 (linc_io_add_watch): add conditional watch debugging.
1760
17612001-11-08 Michael Meeks <michael@ximian.com>
1762
1763 * src/linc-connection.c (linc_connection_writev): remove
1764 'register' optimization :-) fix SSL path, make the code
1765 legible, handle EINTR, don't skip partialy written
1766 iovecs in a totaly bogus way.
1767 (linc_connection_write): handle EINTR.
1768 (linc_connection_read): rename 'written' 'bytes_read'
1769 Document all methods.
1770
17712001-11-06 Michael Meeks <michael@ximian.com>
1772
1773 * src/linc.c (linc_init): init with G_TYPE_DEBUG_OBJECTS.
1774
17752001-10-30 Mark McLoughlin <mark@skynet.ie>
1776
1777 * configure.in: version 0.1.6.
1778
17792001-10-29 Michael Meeks <michael@ximian.com>
1780
1781 * configure.in: require glib >= 1.3.10
1782
17832001-10-26 Michael Meeks <michael@ximian.com>
1784
1785 * src/linc.c (linc_mutex_new): flag that we have been
1786 called.
1787 (linc_set_threaded): add protection for people setting
1788 the threaded-ness late.
1789
17902001-10-24 Ross Golder <rossg@durban.golder.org>
1791
1792 * Makefile.am (EXTRA_DIST): Added spec file, and removed
1793 floating tab
1794
17952001-10-25 Michael Meeks <michael@ximian.com>
1796
1797 * AUTHORS: update,
1798
1799 * *.[ch]: Add copyright headers.
1800
18012001-10-24 Michael Meeks <michael@ximian.com>
1802
1803 * src/linc-connection.c (linc_connection_class_init):
1804 fix ref counting on parent type.
1805
18062001-10-24 Michael Meeks <michael@ximian.com>
1807
1808 * src/linc.c (linc_init): fix brainlessness.
1809
18102001-10-24 Michael Meeks <michael@ximian.com>
1811
1812 * src/linc.c (linc_init): upd.
1813 (linc_set_threaded): impl.
1814 (linc_mutex_new): only return a mutex if linc_threaded
1815 is TRUE, _and_ g_thread_supported.
1816
18172001-10-18 Michael Meeks <michael@ximian.com>
1818
1819 * src/linc-connection.c (linc_connection_connected):
1820 simplify flow, ignore handle_input's return value,
1821 always return TRUE, we remove ourself from both main
1822 contexts elsewhere.
1823
18242001-10-16 Mark McLoughlin <mark@skynet.ie>
1825
1826 * Makefile.am (EXTRA_DIST): kill linc-config.in,
1827 linc.pc.in, linc.spec and linc.spec.in. Add HACKING
1828 and MAINTAINERS.
1829
18302001-10-10 Abel Cheung <maddog@linux.org.hk>
1831
1832 * linc-config.in(cflags): move headers to subdir
1833
1834 * linc.spec.in(%files): ditto, for spec file.
1835
18362001-10-09 Havoc Pennington <hp@redhat.com>
1837
1838 * linc.pc.in (Cflags): headers in a subdir
1839
1840 * include/linc/Makefile.am (lincincludedir): put headers in a
1841 subdir
1842
18432001-09-26 Mark McLoughlin <mark@skynet.ie>
1844
1845 * configure.in: add --enable-compile-warnings option.
1846
1847 * src/Makefile.am: use $(WARN_CFLAGS)
1848
1849 * src/linc-protocols.c
1850 (linc_protocol_get_sockinfo_ipv6): initialise host.
1851 include linc-private.h.
1852
18532001-09-25 Mark McLoughlin <mark@skynet.ie>
1854
1855 * Version 0.1.5.
1856
18572001-09-24 Mark McLoughlin <mark@skynet.ie>
1858
1859 * linc/configure.in: clean up libtool versioning. Use
1860 pkg-config to check for libs. Kill unused vprintf and
1861 alloca check.
1862
1863 * linc.pc.in, linc.spec.in: update.
1864
1865 * linc/src/Makefile.am: update and include libtool
1866 version-info.
1867
18682001-09-20 Mark McLoughlin <mark@skynet.ie>
1869
1870 Patch from Frank Belew <frb@ximian.com>.
1871
1872 * src/linc-protocols.c (static_linc_protocols):
1873 don't use 'designated initializers' style of initialization.
1874 Allowed by C99, but Sun's Forte compiler does't allow it.
1875
18762001-09-20 Mark McLoughlin <mark@skynet.ie>
1877
1878 * src/linc-connection.c
1879 (linc_connection_real_state_changed): rename to...
1880 (linc_connection_class_state_changed): document and tidy.
1881 (linc_connection_from_fd): ditto.
1882 (linc_connection_initiate): ditto.
1883 (linc_connection_state_changed): ditto.
1884 (linc_connection_read): return 0 if passed 0 or if the
1885 connection has been closed.
1886
18872001-09-18 Jens Finke <jens@gnome.org>
1888
1889 * linc.spec.in: New file.
1890
1891 * Makefile.am (EXTRA_DIST): Added linc.spec and linc.spec.in.
1892
1893 * configure.in (AC_OUTPUT): Create linc.spec.
1894
18952001-09-13 Michael Meeks <michael@ximian.com>
1896
1897 * src/linc-protocols.c (linc_protocol_get_sockinfo_ipv46):
1898 use guint instead of in_port_t to fix the issue differently.
1899
1900 * configure.in: remove bogus in_port_t define.
1901
19022001-09-12 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
1903
1904 * configure.in; compile fix: define in_port_t if it isn't
1905
19062001-09-11 Mark McLoughlin <mark@skynet.ie>
1907
1908 * src/linc-protocol.c: fix typo.
1909
19102001-09-11 Mark McLoughlin <mark@skynet.ie>
1911
1912 * include/linc/linc-protocol.h,
1913 src/linc-protocols.c
1914 (LINCProtocolGetAddrInfoFunc, LINCProtocolGetNameInfoFunc):
1915 killed.
1916 (LINCProtocolGetSockInfoFunc): added.
1917 (LINCProtocolInfo): added get_sockinfo. killed getaddrinfo and
1918 getnameinfo.
1919 (linc_getaddrinfo, linc_getnameinfo, sys_getaddrinfo,
1920 sys_getnameinfo): killed.
1921 (tcp_setup): renamed to linc_protocol_tcp_setup.
1922 (af_unix_destroy): renamed to linc_protocol_unix_destroy.
1923 (protocol_ents): renamed to static_linc_protocols.
1924 (linc_protocol_get_sockinfo_ipv46,
1925 linc_protocol_get_sockinfo_ipv4,
1926 linc_protocol_get_sockinfo_ipv6,
1927 linc_protocol_get_sockinfo_unix,
1928 linc_protocol_get_sockinfo_irda, linc_protocol_get_sockinfo):
1929 implemented.
1930 Finished documenting.
1931 NOTE: get_sockinfo_irda and get_sockaddr_irda are not working.
1932
1933 * src/linc-private.h: added linc_protocol_get_sockinfo.
1934
1935 * src/linc-server.c(linc_server_accept_connection): use
1936 get_sockinfo instead of getnameinfo.
1937 (linc_server_setup): ditto.
1938
1939 * include/linc/linc-connection.h,
1940 src/linc-connection.c(linc_connection_from_fd):
1941 don't dup remote_host_info and remote_serv_info.
1942
19432001-09-10 Mark McLoughlin <mark@skynet.ie>
1944
1945 * linc/src/linc-protocols.c:
1946 (linc_protocol_get_sockaddr_ipv4): set resolver options.
1947 (linc_protocol_get_sockaddr_ipv6): impl.
1948 (linc_protocol_get_sockaddr_unix): kill silly saddr_len bug.
1949 (irda_getaddrinfo): use new IRDA_PREFIX_LEN define.
1950 Move protocol_ents definition to bottom and kill prototypes.
1951 Api-doc most functions.
1952
19532001-09-09 Michael Meeks <michael@ximian.com>
1954
1955 * src/linc-server.c (linc_server_setup): remove
1956 bogus g_free (saddr)
1957
19582001-09-07 Mark McLoughlin <mark@skynet.ie>
1959
1960 * acconfig.h, configure.in: add check for
1961 sockaddr's sa_len member.
1962
1963 * src/linc-protocols.c(linc_protocol_get_sockaddr,
1964 linc_protocol_get_sockaddr_ipv4,
1965 linc_protocol_get_sockaddr_ipv6,
1966 linc_protocol_get_sockaddr_unix,
1967 linc_protocol_get_sockaddr_irda): impl. get_sockaddr
1968 will replace getaddrinfo soon. getaddrinfo is a waste
1969 of time - we don't need most of the data it returns,
1970 and it is non-portable for unix sockets, ipv6 and irda.
1971 Indeed older unices don't even have an implementation for
1972 ipv4.
1973 *NOTE*: irda and ipv6 are not working with this yet. But
1974 I doubt anyone is actually using these...
1975
1976 * src/linc-private.h: add linc_protocol_get_sockaddr.
1977
1978 * src/linc-connection.c(linc_connection_initiate): use
1979 linc_protocol_get_sockaddr instead of linc_getaddrinfo.
1980
1981 * src/linc-server.c(linc_server_setup): ditto.
1982
1983 * include/linc/linc-types.h: moved LINCProtocolInfo here.
1984
1985 * include/linc/linc-protocol.h
1986 (LINCProtocolInfo): added get_sockname. Impl typedefs
1987 for functions types.
1988
19892001-09-07 Mark McLoughlin <mark@skynet.ie>
1990
1991 * src/linc-protocols.c: Warning killers - include string.h
1992 and don't prototype IRDA functions if IRDA defines not
1993 available.
1994
19952001-08-31 Michael Meeks <michael@ximian.com>
1996
1997 * src/linc-connection.c (ERR_CONDS): hack off G_IO_PRI
1998 (IN_CONDS): PRI|IN
1999 (linc_connection_connected),
2000 (linc_connection_real_state_changed): use it.
2001
20022001-08-27 Mark McLoughlin <mark@skynet.ie>
2003
2004 * linc.pc.in: require gobject and gthread.
2005
20062001-08-24 Mark McLoughlin <mark@skynet.ie>
2007
2008 * configure.in: remove unused --enable-linc-threadsafe
2009 option. Removed pthread.h check - we always want to
2010 link against gthread.
2011
20122001-08-23 Michael Meeks <michael@ximian.com>
2013
2014 * Version 0.1.4
2015
20162001-08-21 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
2017
2018 * src/linc.c (main): ignore SIGPIPE, handle this
2019 here instead of in libbonobo
2020
20212001-08-20 Theo van Klaveren <t.vanklaveren@student.utwente.nl>
2022
2023 * include/linc/linc-protocol.h: Include <sys/types.h> to
2024 fix build on FreeBSD.
2025
20262001-08-18 Cody Russell <bratsche@gnome.org>
2027
2028 * linc.pc.in: Added.
2029
2030 * configure.in, Makefile.am: Build and install linc.pc
2031
20322001-08-18 Michael Meeks <michael@ximian.com>
2033
2034 * configure.in: bump version to 0.1.3
2035
2036 * src/linc.c (linc_mutex_attrs): kill.
2037 (linc_init): kill pthread specific bits, take
2038 gboolean 'init_threads'
2039 (linc_mutex_new): impl. to hide conditional mess.
2040
2041 * src/linc-server.c (linc_server_accept_connection):
2042 split out of
2043 (linc_server_handle_io): here & update locking.
2044
20452001-08-17 Michael Meeks <michael@ximian.com>
2046
2047 * src/linc-server.c (linc_server_init): use g_thread
2048 stuff straight - no need for a recursive mutex - set
2049 to NULL if threads not initialized.
2050
2051 * include/linc: homogenise header guard style, add
2052 G_BEGIN/END_DECLS
2053
2054 * include/linc/linc-types.h:
2055 s/LINC_THREADSAFE/G_THREADS_ENABLED/ kill whacked out
2056 threading macro overload.
2057 (LINC_MUTEX_[UN]LOCK): don't inexplicably steal
2058 chunks of the O_ namespace.
2059 kill extreme strangeness with defining wierd system bits.
2060
2061 * Revert Mark's patch.
2062
20632001-08-18 Mark McLoughlin <mark@skynet.ie>
2064
2065 * configure.in: added --enable-linc-threadsafe
2066 option. Defaults to yes.
2067
2068 * include/linc/linc-config.h.in: added
2069 LINC_ENABLE_THREADSAFE def.
2070
2071 * include/linc/linc-connection.h,
2072 include/linc/linc-server.h,
2073 include/linc/linc-server.h,
2074 include/linc/linc-types.h,
2075 include/linc/linc-threads.h,
2076 include/linc/linc.h: split out threaded
2077 stuff into linc-threads.h. Removed _GNU_SOURCE,
2078 _XOPEN_SOURCE and _REENTRANT defines. Cleaned
2079 up a little.
2080
2081 * linc/include/linc/Makefile.am: added linc-threads.h.
2082
2083 * src/Makefile.am: add -D_GNU_SOURCE for
2084 PTHREAD_MUTEX_RECURSIVE.
2085
20862001-08-16 Mark McLoughlin <mark@skynet.ie>
2087
2088 * configure.in: Cache ACLOCAL_FLAGS.
2089
20902001-08-16 Michael Meeks <michael@ximian.com>
2091
2092 * configure.in: bump version to 0.1.2
2093
2094 * src/linc-connection.c (linc_connection_get_type): don't
2095 use the base_init - but the instance_init to set fd == -1
2096 so we don't close (0), doh.
2097 (linc_connection_connected): update to call the
2098 handle_input virtual method on input.
2099
21002001-08-14 Michael Meeks <michael@ximian.com>
2101
2102 * src/linc-protocols.c (irda_getaddrinfo): kill another
2103 heinous srand idiocy.
2104
21052001-08-13 Michael Meeks <michael@ximian.com>
2106
2107 * src/linc-connection.c (linc_close_fd): split out.
2108 (linc_connection_dispose): use.
2109 (linc_connection_real_state_changed): ditto.
2110
21112001-08-13 Michael Meeks <michael@ximian.com>
2112
2113 * src/linc-connection.c (linc_connection_init): impl,
2114 to init cnx->fd = -1.
2115 (linc_connection_get_type): upd. - thanks to Martin Baulig.
2116
21172001-08-10 Michael Meeks <michael@ximian.com>
2118
2119 * src/linc-protocols.c (linc_set_tmpdir): kill gratuitous evil
2120 (make_local_tmpdir): copy from ORBit-stable.
2121 (linc_set_tmpdir): actualy ensure that we have a valid
2122 working directory.
2123
21242001-07-30 Michael Meeks <michael@ximian.com>
2125
2126 * Version 0.1.1
2127
21282001-07-30 Michael Meeks <michael@ximian.com>
2129
2130 * src/linc-connection.c (linc_connection_class_init):
2131 remove redundant static prototypes.
2132 (linc_connection_class_init): init 'broken' signal.
2133 (linc_connection_real_state_changed): emit the 'broken'
2134 signal.
2135
21362001-07-24 Michael Meeks <michael@ximian.com>
2137
2138 * src/linc-connection.c (linc_connection_real_state_changed):
2139 make it unref the connection on disconnect ...
2140
21412001-07-18 Michael Meeks <michael@ximian.com>
2142
2143 * src/linc-connection.c (linc_connection_writev):
2144 s/g_main_iteration/linc_main_iteration/.
2145
2146 * src/linc.c (linc_main_iteration): impl.
2147 (linc_init): make the linc_loop run.
2148 (linc_main_pending): impl.
2149 (linc_main_loop_run): impl.
2150
2151 * src/linc-server.c (linc_server_dispose): upd.
2152 (linc_server_setup): upd.
2153 (linc_server_get_type): re-order to kill redundant
2154 prototypes.
2155
2156 * src/linc-connection.c (linc_source_remove): upd.
2157 (linc_connection_init): remove; redundant.
2158 (linc_connection_real_state_changed): upd.
2159 (linc_connection_connected): upd.
2160
2161 * src/linc.c (linc_io_add_watch): impl.
2162 (linc_io_remove_watch): impl.
2163
2164 * include/linc/linc-types.h: add LincWatch type.
2165
2166 * src/*.c: s/g_io_add_watch/linc_io_add_watch/
2167
21682001-07-16 Darin Adler <darin@bentspoon.com>
2169
2170 * include/linc/linc-types.h: Fix order of includes to
2171 keep Linux happy -- the Solaris change let to a compile
2172 failure on Linux.
2173
2174 * src/linc.c: (linc_init): Add a missing ifdef.
2175
21762001-07-16 Laszlo Peter <laca@ireland.sun.com>
2177
2178 * src/linc-protocols.c: set fakelen to 0 when fakehost is NULL
2179 to avoid core dump on Solaris.
2180
2181 * include/linc/linc-types.h: include <sys/types.h> to
2182 keep Solaris happy.
2183
21842001-07-13 Darin Adler <darin@bentspoon.com>
2185
2186 * configure.in: Remove duplicate macros, and fix one of
2187 the test invocations that was not using the x prefix
2188 technique correctly.
2189
21902001-07-13 Michael Meeks <michael@ximian.com>
2191
2192 * src/linc-connection.c (linc_connection_initiate): add
2193 more error checking on fcntls.
2194
21952001-07-08 Seth Nickell <snickell@stanford.edu>
2196
2197 * src/linc.c: (linc_init):
2198
2199 Only call g_thread_init if the threading system hasn't
2200 already been activated.
2201
22022001-07-03 Michael Meeks <michael@ximian.com>
2203
2204 * src/linc-protocols.c (linc_getaddrinfo): don't re-seed the
2205 random number generator with the time in seconds !
2206 don't use "%d%d", rand (), rand () - it gains us nothing,
2207 add gettimeofday ^ instead.
2208
2209 * src/linc-connection.c (linc_connection_dispose):
2210 s/shutdown/dispose.
2211
2212 * src/linc.c (linc_init): fix g_type_init.
2213
22142001-07-02 Michael Meeks <michael@ximian.com>
2215
2216 * src/linc-server.c (linc_server_setup): regenerate the
2217 UDS' name on EINVAL from bind.
2218
22192001-06-21 Martin Baulig <baulig@suse.de>
2220
2221 * configure.in: Make this work if SSL is not installed.
2222
22232001-05-25 Michael Meeks <michael@ximian.com>
2224
2225 * src/linc-connection.c (linc_source_remove): split from
2226 (linc_connection_shutdown): here, and release the self
2227 reference whilst watching.
2228 (linc_connection_real_state_changed): use linc_source_remove.
2229 (linc_connection_connected): hold a ref over the state_changed
2230 emissions.
2231
22322001-05-24 Michael Meeks <michael@ximian.com>
2233
2234 * src/linc-connection.c (linc_connection_connected):
2235 unref the connection object on disconnection.
2236
2237 * src/linc-server.c (linc_server_destroy):
2238 protect against multiple shutdowns, and rename to
2239
2240 * src/linc-connection.c (linc_connection_destroy):
2241 protect against multiple shutdowns, and rename to
2242 (linc_connection_shutdown): this.
2243 (linc_connection_real_state_changed): add assertions
2244 on source removal.
2245
22462001-05-18 Michael Meeks <michael@ximian.com>
2247
2248 * src/linc-connection.c (linc_connection_destroy): check
2249 the io channel is valid before the unref - happens in
2250 some error cases.
2251
22522001-05-18 Michael Meeks <michael@ximian.com>
2253
2254 * src/linc-server.c (linc_server_class_init): actualy
2255 make the signal run.
2256
22572001-05-18 Michael Meeks <michael@ximian.com>
2258
2259 * autogen.sh: update for libtool 1.4
2260
2261 * src/linc-connection.c (linc_connection_destroy): unref
2262 the IO channel on destroy - doh.
2263
22642000-10-27 Michael Meeks <michael@helixcode.com>
2265
2266 * src/linc-server.c (linc_server_get_type): type_register_static
2267 fix.
2268
2269 * src/linc-connection.c (linc_connection_writev): use cnx->fd.
2270 (linc_connection_get_type): add '0' parameter for head glib.
2271
Note: See TracBrowser for help on using the repository browser.