Mercurial > pidgin.yaz
annotate COPYRIGHT @ 8436:4bb3d8dc717e
[gaim-migrate @ 9166]
" If getaddrinfo() is used, the addrlen and addr returned
through that function are written through the pipe to
the child Gaim processes. getaddrinfo() sets the
addrlen and addr fields through the following
structure, defined in <netdb.h>:
struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
size_t ai_addrlen;
char *ai_canonname;
struct sockaddr *ai_addr;
struct addrinfo *ai_next;
};
This is from FreeBSD/amd64 5.2.1-RELEASE. This
structure is defined differently on different systems.
Take, for example, this OpenBSD/i386 3.5-beta system:
struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
socklen_t ai_addrlen;
struct sockaddr *ai_addr;
char *ai_canonname;
struct addrinfo *ai_next;
};
After being read, the addrlen and addr of each host is
written through the descriptor:
src/proxy.c:
466 rc =
getaddrinfo(dns_params.hostname, servname, &hints, &res);
...
478 while(res) {
479
write(child_out[1], &(res->ai_addrlen),
sizeof(res->ai_addrlen));
480
write(child_out[1], res->ai_addr, res->ai_addrlen);
481 res =
res->ai_next;
482 }
And later subsequently read:
286 rc=read(req->fd_out,
&addrlen, sizeof(addrlen));
287 if(rc>0 && addrlen > 0) {
288
addr=g_malloc(addrlen);
289
rc=read(req->fd_out, addr, addrlen);
So hence, the type of addrlen that is used in
host_resolved() must match that of the addrlen used in
the addrinfo structure, or they must at least be
guarenteed to be the same size." --jarady
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 12 Mar 2004 16:59:22 +0000 |
parents | 0a7d2cb22b3b |
children | f6483c880eaf |
rev | line source |
---|---|
8046 | 1 Gaim |
2 Copyright (C) 1998-2004 by the following: | |
3 | |
4 If you have contributed to Gaim, you deserve to be on this list. | |
5 Contact us (see: AUTHORS) and we'll add you. | |
6 | |
7959 | 7 Paul A |
7967 | 8 Daniel Atallah |
7959 | 9 Patrick Aussems |
8266 | 10 Kevin Barry |
7958 | 11 Brian Bernas |
7959 | 12 Jonas Birmé |
7958 | 13 Ethan Blanton |
7959 | 14 Joshua Blanton |
7958 | 15 Herman Bloggs |
16 Jason Boerner | |
7959 | 17 Graham Booker |
18 Craig Boston | |
19 Chris Boyle | |
7958 | 20 Jeremy Brooks |
8139 | 21 Philip Brown |
7959 | 22 Sean Burke |
23 Cerulean Studios, LLC | |
24 Ka-Hing Cheung | |
25 Arturo Cisneros, Jr. | |
26 Vincas Ciziunas | |
7958 | 27 Joe Clarke |
7959 | 28 Todd Cohen |
29 Felipe Contreras | |
30 Jeramey Crawford | |
31 Mark Doliner | |
32 Nuno Donato | |
33 Jim Duchek | |
34 Tom Dyas | |
35 Andrew Echols | |
36 Sean Egan <sean.egan@binghamton.edu> | |
37 Brian Enigma | |
7998 | 38 Stefan Esser |
7958 | 39 Larry Ewing |
7959 | 40 Jesse Farmer |
7983 | 41 Gavan Fantom (gavan) |
8195 | 42 Rob Flynn <gaim@robflynn.com> |
8384 | 43 Rob (rwf) Foehl |
7958 | 44 Nathan Fredrickson |
8267 | 45 Chris J. Friesen |
8048 | 46 Free Software Foundation |
7959 | 47 Decklin Foster |
48 Adam Fritzler | |
8209 | 49 Max G. |
8160 | 50 Ignacy Gawedzki |
7959 | 51 Michael Golden |
52 Ryan C. Gordon | |
53 Christian Hammond | |
8124 | 54 Benjamin Herrenschmidt |
7959 | 55 Andy Harrison |
56 G. Sumner Hayes | |
57 Mike Heffner | |
8046 | 58 Iain Holmes |
7959 | 59 Karsten Huneycutt |
60 Akuke Kok | |
8124 | 61 Gary Kramlich |
7959 | 62 Tero Kuusela |
8273
f24172f53650
[gaim-migrate @ 8997]
Christian Hammond <chipx86@chipx86.com>
parents:
8267
diff
changeset
|
63 Scott Lamb |
7959 | 64 Dennis Lambe Jr. |
65 Ho-seok Lee | |
66 Moses Lei | |
67 Ambrose C. Li | |
7957 | 68 Nicolas Lichtmaier |
7959 | 69 Artem Litvinovich |
70 Syd Logan | |
8220 | 71 Uli Luckas |
7959 | 72 Matthew Luckie |
73 Brian Macke | |
8046 | 74 Paolo Maggi |
7959 | 75 Willian T. Mahan |
76 John Matthews | |
77 Ryan McCabe | |
7957 | 78 Robert McQueen |
79 Robert Mibus | |
7959 | 80 Benjamin Miller |
81 Kevin Miller | |
82 Paul Miller | |
83 Arkadiusz Miskiewicz | |
84 Andrew Molloy | |
8241 | 85 Padraig O'Briain |
8334 | 86 Nathan (pianocomp81) Owens |
7959 | 87 Matt Pandina |
8046 | 88 Ricardo Fernandez Pascual |
89 Havoc Pennington | |
7959 | 90 Ari Pollak |
7957 | 91 Robey Pointer |
7959 | 92 Nathan Poznick |
93 Brent Priddy | |
94 Federicco Mena Quintero | |
95 David Raeman | |
96 Etan Reisner | |
97 Kristian Rietveld | |
8332
f4a878d48254
[gaim-migrate @ 9056]
Christian Hammond <chipx86@chipx86.com>
parents:
8273
diff
changeset
|
98 Pekka Riikonen |
7959 | 99 Tim Ringenbach |
100 Andrew Rodland | |
101 Neil Sanchala | |
8046 | 102 Carsten Schaar |
7959 | 103 Luke Schierer |
8208
bfbba1a7710a
[gaim-migrate @ 8931]
Christian Hammond <chipx86@chipx86.com>
parents:
8204
diff
changeset
|
104 Evan Schoenberg |
7959 | 105 Torrey Searle |
106 Jim Seymour | |
107 John Silvestri | |
8204 | 108 Alex Smith |
7959 | 109 David Smock |
110 Mark Spencer <markster@marko.net> | |
111 Lex Spoon | |
112 Kevin Stange | |
113 David Stoddard | |
8153 | 114 Sun Microsystems |
8217 | 115 Mårten (fursten) Svantesson |
7959 | 116 Brian Tarricone |
117 Peter Teichman | |
8118 | 118 Philip Tellis |
7959 | 119 Arun A. Tharuvai |
8118 | 120 Douglas (douglaswth) Thrift |
8124 | 121 Stu Tomlinson |
7959 | 122 Bill Tompkins |
8046 | 123 Tom Tromey |
7959 | 124 Junichi Uekawa |
125 Bjoern Voigt | |
126 Nathan Walp | |
127 Eric Warmenhoven | |
8091 | 128 Dan Willemsen |
7959 | 129 Jason Willis |
130 Matt Wilson | |
7957 | 131 Ximian |
8436 | 132 Jared Yanovich |
8235 | 133 Marco Ziech |
8046 | 134 Jaroen Zwartepoorte |