stuff that Emacs does magically find the SSH tunnel and work
without me having to care.
+ Testing
+
+ noip provides a handy way for testing network servers and so on
+ safely. For a start, you can run your test server apparently on
+ the same port as the real one. Because noip consults the
+ environment variable NOIP_SOCKETDIR to find out where to put its
+ sockets, you can run two at a time and they don't interfere.
+ And noip doesn't care what port numbers your program tries to
+ bind, so you don't need to jump through stupid hoops in order to
+ test programs which use `privileged' ports.
+
+ Other applications
+
+ There are certainly loads of handy things you can do with noip.
+ If you think of one, let me know!
+
+ Mark Wooding
+ mdw@distorted.org.uk
+
\f
Local variables:
mode: text
+preload-hacks (1.0.5) experimental; urgency=low
+
+ * Fix `errno' clobbering in connect(2).
+
+ -- Mark Wooding <mdw@distorted.org.uk> Sat, 26 Dec 2009 12:16:38 +0000
+
preload-hacks (1.0.4) experimental; urgency=low
* Fix overenthusiastic address decoding in accept(2) and friends.
int fixup_p = 0;
int rc;
- if (sa->sa_family == AF_INET) {
- PRESERVING_ERRNO({
- do_implicit_bind(sk, &sa, &len, &sun);
- fixup_p = 1;
- });
- }
- rc = real_connect(sk, sa, len);
- if (rc < 0) {
- switch (errno) {
- case ENOENT: errno = ECONNREFUSED; break;
- }
+ switch (sa->sa_family) {
+ case AF_INET:
+ PRESERVING_ERRNO({
+ do_implicit_bind(sk, &sa, &len, &sun);
+ fixup_p = 1;
+ });
+ rc = real_connect(sk, sa, len);
+ if (rc < 0) {
+ switch (errno) {
+ case ENOENT: errno = ECONNREFUSED; break;
+ }
+ }
+ break;
+ default:
+ rc = real_connect(sk, sa, len);
+ break;
}
return rc;
}