Mercurial > pidgin.yaz
comparison src/proxy.c @ 234:985635758c33
[gaim-migrate @ 244]
More patches from fflew. This adds a font selector to the conversation window,
among other things.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 16 May 2000 20:48:47 +0000 |
parents | ec0686b3b03f |
children | 5b28ef2b550e |
comparison
equal
deleted
inserted
replaced
233:b8c5efaef154 | 234:985635758c33 |
---|---|
172 free(inputline); | 172 free(inputline); |
173 } | 173 } |
174 | 174 |
175 return ret; | 175 return ret; |
176 break; | 176 break; |
177 case PROXY_SOCKS: | 177 case PROXY_SOCKS: /* Socks v4 proxy (? I'm not a proxy hacker) */ |
178 fprintf(stderr,"Socks proxy is not yet implemented.\n"); | 178 /* this is going to be a cross between the HTTP proxy code |
179 return(-1); | 179 * above and the TiK proxy code, translated from tcl->C */ |
180 /* | |
181 { | |
182 struct hostent *hostinfo; | |
183 unsigned short shortport = proxy_port; | |
184 | |
185 memset(&name, 0, sizeof (name)); | |
186 name.sin_family = AF_INET; | |
187 name.sin_port = htons (shortport); | |
188 hostinfo = gethostbyname (proxy_host); | |
189 if (hostinfo == NULL) { | |
190 fprintf (stderr, "Unknown host %s.\n", proxy_host); | |
191 return (-1); | |
192 } | |
193 name.sin_addr = *(struct in_addr *) hostinfo->h_addr; | |
194 } | |
195 sprintf(debug_buff,"Trying to connect ...\n"); | |
196 debug_print(debug_buff); | |
197 if ((ret = connect(sockfd,(struct sockaddr *)&name,sizeof(name)))<0) | |
198 return(ret); | |
199 */ | |
200 /* here's where it's no longer http proxy and is now tik */ | |
201 /* { | |
202 char cmd[80]; | |
203 char *inputline; | |
204 | |
205 snprintf(cmd, 80, "\0x4\0x1%d%d%d%d%d", toc_port, | |
206 toc_server_1, | |
207 toc_server_2, /* the second part of the | |
208 ip address: 1.this.1.1 | |
209 *//* | |
210 toc_server_3, | |
211 toc_server_4); | |
212 if (send(sockfd,cmd,strlen(cmd),0)<0) | |
213 return(-1); | |
214 if (proxy_recv_line(sockfd,&inputline) < 0) { | |
215 return(-1); | |
216 }*/ | |
180 break; | 217 break; |
181 default: | 218 default: |
182 fprintf(stderr,"Unknown proxy type : %d.\n",proxy_type); | 219 fprintf(stderr,"Unknown proxy type : %d.\n",proxy_type); |
183 break; | 220 break; |
184 } | 221 } |