aboutsummaryrefslogtreecommitdiffstats
path: root/proxy/proxy_int.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-01-09 17:51:21 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-01-09 17:51:21 -0800
commitc2db2b6accc7888df514261a7240e7759df95a4c (patch)
tree0d7ecd37a534c15348cbad01d0d1f84183b7b4d8 /proxy/proxy_int.h
parentdf7881f07f53b041dc0568be8528e9dbb74994cc (diff)
downloadexternal_qemu-c2db2b6accc7888df514261a7240e7759df95a4c.zip
external_qemu-c2db2b6accc7888df514261a7240e7759df95a4c.tar.gz
external_qemu-c2db2b6accc7888df514261a7240e7759df95a4c.tar.bz2
auto import from //branches/cupcake/...@125939
Diffstat (limited to 'proxy/proxy_int.h')
-rw-r--r--proxy/proxy_int.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/proxy/proxy_int.h b/proxy/proxy_int.h
index e71d9d6..9bdac5c 100644
--- a/proxy/proxy_int.h
+++ b/proxy/proxy_int.h
@@ -67,7 +67,7 @@ typedef void (*ProxyConnectionPollFunc) ( ProxyConnection* conn,
/* root ProxyConnection object */
struct ProxyConnection {
int socket;
- struct sockaddr_in address; /* for debugging */
+ SockAddress address; /* for debugging */
ProxyConnection* next;
ProxyConnection* prev;
ProxyEventFunc ev_func;
@@ -95,7 +95,7 @@ struct ProxyConnection {
extern void
proxy_connection_init( ProxyConnection* conn,
int socket,
- struct sockaddr_in* address,
+ SockAddress* address,
ProxyService* service,
ProxyConnectionFreeFunc conn_free,
ProxyConnectionSelectFunc conn_select,
@@ -172,10 +172,10 @@ proxy_base64_encode( const char* src, int srclen,
char* dst, int dstlen );
extern int
-proxy_resolve_server( struct sockaddr_in* addr,
- const char* servername,
- int servernamelen,
- int serverport );
+proxy_resolve_server( SockAddress* addr,
+ const char* servername,
+ int servernamelen,
+ int serverport );
/* a ProxyService is really a proxy server and associated options */
@@ -184,9 +184,9 @@ typedef void (*ProxyServiceFreeFunc) ( void* opaque );
/* tries to create a new proxified connection, returns NULL if the service can't
* handle this address */
-typedef ProxyConnection* (*ProxyServiceConnectFunc)( void* opaque,
- int socket_type,
- struct sockaddr_in* address );
+typedef ProxyConnection* (*ProxyServiceConnectFunc)( void* opaque,
+ SocketType socket_type,
+ const SockAddress* address );
struct ProxyService {
void* opaque;