search for: csock

Displaying 8 results from an estimated 8 matches for "csock".

Did you mean: clock
2007 Dec 07
1
Added native socks support to libc in FreeBSD 7
Hi, i added a native (client) Socks V4/V5 support inside FreeBSD libc library. The work is based of my project (see http://csocks.altervista.org) CSOCKS. You can get it here: http://csocks.altervista.org/download/FreeBSD_libc.tar.gz CHANGES: I changed the file: /usr/src/lib/libc/Makefile I added the Directory: /usr/src/lib/libc/socks They contains the files: csocks.c csocks.h c...
2008 Jan 14
0
Added native socks support to libc in FreeBSD 7
Upgrade: 1) Added IPv6 Support (need to be tested) Cheers Raffaele Hi, i added a native (client) Socks V4/V5 support inside FreeBSD libc library. The work is based of my project (see http://csocks.altervista.org) CSOCKS. You can get it here: http://csocks.altervista.org/download/FreeBSD_libc.tar.gz CHANGES: I changed the file: /usr/src/lib/libc/Makefile I added the Directory: /usr/src/lib/libc/socks They contains the files: csocks.c csocks.h c...
2007 Jan 06
1
Re: [nut-commits] svn commit r710 - in trunk: . clients server
...ne = 1; > @@ -206,6 +244,7 @@ > } > freeaddrinfo (rtmp); > return; > +#endif > } > > /* decrement the login counter for this ups */ > @@ -457,7 +496,11 @@ > static void answertcp(void) > { > int acc; > +#ifndef HAVE_IPV6 > + struct sockaddr_in csock; > +#else > struct sockaddr_storage csock; > +#endif > ctype *tmp, *last; > socklen_t clen; > > @@ -469,7 +512,11 @@ > > if (!access_check(&csock)) { > upslogx(LOG_NOTICE, "Rejecting TCP connection from %s", > +#ifndef HAVE_IPV6 > +...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...ULL) > + fatal_with_errno("listen"); > + close (listenfd); > + continue; > + } > + break; > + } > + freeaddrinfo (rtmp); > return; > } > > @@ -412,7 +457,7 @@ > static void answertcp(void) > { > int acc; > - struct sockaddr_in csock; > + struct sockaddr_storage csock; > ctype *tmp, *last; > socklen_t clen; > > @@ -424,7 +469,7 @@ > > if (!access_check(&csock)) { > upslogx(LOG_NOTICE, "Rejecting TCP connection from %s", > - inet_ntoa(csock.sin_addr)); > + inet_ntopW(...
2007 Jan 23
2
Re: [nut-commits] svn commit r731
...ups */ > static void declogins(const char *upsname) > @@ -493,19 +561,20 @@ > } > > /* answer incoming tcp connections */ > -static void answertcp(void) > -{ > - int acc; > +static void answertcp(stype *serv) > #ifndef HAVE_IPV6 > +{ > struct sockaddr_in csock; > #else > +{ > struct sockaddr_storage csock; > #endif > + int acc; > ctype *tmp, *last; > socklen_t clen; > > clen = sizeof(csock); > - acc = accept(listenfd, (struct sockaddr *) &csock, &clen); > + acc = accept(serv->sock_fd, (struct sockad...
2008 Feb 29
35
[RFC] PVFB: Add refresh period to XenStore parameters?
Hello, Sometimes the backend of PVFB knows that it doesn''t need permanent refresh, when the window is minimized for instance (no refresh at all), or the administration tools know that the window is thumnailed, and so a slow refresh rate is fine. Also, some users may want to tune the refresh rate according to the smoothness they would like, balanced with the CPU time that requires.
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...) != vs->depth) console_color_init(ds); - } - size_changed = ds->width != w || ds->height != h; - ds->width = w; - ds->height = h; + vnc_colordepth(ds); + size_changed = ds_get_width(ds) != vs->width || ds_get_height(ds) != vs->height; if (vs->csock != -1 && vs->has_resize && size_changed) { - vs->width = ds->width; - vs->height = ds->height; + vs->width = ds_get_width(ds); + vs->height = ds_get_height(ds); if (vs->update_requested) { vnc_write_u8(vs, 0); /* ms...
2009 Mar 02
0
[PATCH 5 of 13] exploiting the new interface in vnc.c
...vnc.c Mon Feb 16 12:07:19 2009 +0000 @@ -74,6 +74,12 @@ #define VNC_DEBUG(fmt, ...) do { } while (0) #endif +#define count_bits(c, v) { \ + for (c = 0; v; v >>= 1) \ + { \ + c += v & 1; \ + } \ +} typedef struct Buffer { @@ -162,8 +168,6 @@ int lsock; int csock; DisplayState *ds; - int width; - int height; uint64_t *dirty_row; /* screen regions which are possibly dirty */ int dirty_pixel_shift; uint64_t *update_row; /* outstanding updates */ @@ -173,7 +177,6 @@ int update_requested; /* the client requested an update */...