Displaying keyword search results 1 - 10
Created by voodoo on February 02, 2013 12:29:56 Last update: February 02, 2013 12:29:56
I got this error while compiling ucspi-tcp . The solution was to move #include <errno.h> from error.c to error.h . The following also works:
echo gcc -O2 -include /usr/include/errno.h > conf-...The reason was explained in http://cr.yp.to/docs/unixport.html#errno
Created by voodoo on August 03, 2012 08:42:38 Last update: August 03, 2012 09:31:25
The C function getsockopt lets you get the error codes with the option SO_ERROR . The possible error numbers are defined in the global errno.h . The relevant values are:
#define ETIMEDOUT 110 /* Connection timed out */ ...But here's the whole list on my Linux system ( /usr/include/asm-generic/errno.h ):
#ifndef _ASM_GENERIC_ERRNO_H #define _ASM_GENER...
Created by Dr. Xi on May 25, 2012 15:47:34 Last update: May 25, 2012 15:49:33
Steps to configure SSL for Apache HTTPD server on Windows: In Apache2.2/conf/httpd.conf , load mod_ssl and include httpd-ssl.conf :
LoadModule ssl_module modules/mod_ssl.so ...In Apache2.2/conf/extra/httpd-ssl.conf , make sure the paths for the cert files point to the cert and key you want to use:
# Server Certificate: # Point SSLCertificat...Start up Apache. If it fails, use the command line to see what the error is. There won't be any log in error.log if there are errors in the conf files:
C:\Program Files (x86)\Apache Software Foundation\...I corrected the previous error by using the alternative line for SSLSessionCache :
# Inter-Process Session Cache: # Configure ...
Created by Fang on November 28, 2011 21:04:15 Last update: November 28, 2011 21:04:15
<h:outputScript target="head"> <![CDATA...Use XML entities:
Created by magnum on October 09, 2011 19:53:26 Last update: October 09, 2011 19:53:50
#include <stdio.h> #include <stdlib.h> #incl...UNIXguide.net explains this option well: This socket option tells the kernel that even if this port is busy (in the TIME_WAIT state), go ahead and reuse it anyway. If it is busy, but with another state, you will still get an address already in use error. It is useful if your server has been shut down, and then restarted right away while sockets are still active on its port. You should be aware that if any unexpected data comes in, it may confuse your server, but while this is possible, it is not likely. It has been pointed out that "A socket is a 5 tuple (proto, local addr, local port, remote addr, remote port). SO_REUSEADDR just says that you...
Created by magnum on September 25, 2011 21:51:23 Last update: September 26, 2011 20:49:22
A simple socket client in C.
#include <stdio.h> #include <stdlib.h> #incl...
Created by voodoo on August 12, 2011 14:43:57 Last update: August 14, 2011 15:19:21
#include <stdio.h> #include <stdlib.h> i...
Created by voodoo on August 08, 2011 13:03:53 Last update: August 08, 2011 13:04:12
This error was caused my a missing include ( snprintf was defined in cstdio ). To fix, just add:
Created by freyo on July 21, 2011 12:58:59 Last update: July 21, 2011 13:02:17
From Android Developers : You can use a third party JAR in your application by adding it to your Eclipse project as follows: In the Package Explorer panel, right-click on your project and select Properties . Select Java Build Path , then the tab Libraries . Press the Add External JARs... button and select the JAR file. Alternatively, if you want to include third party JARs with your package, create a new directory for them within your project and select Add Library... instead. It is not necessary to put external JARs in the assets folder. Apparently, this is not working for me! I added a libs folder, put the external jar in libs . The project built fine, but the APK does not include the...
Created by jinx on May 03, 2011 09:42:12 Last update: May 03, 2011 09:42:12
The @ operator suppresses error messages. A usual example is:
<?php $v = @$a['non-existing-key']; ?>which suppresses the "undefined index" PHP notice. Another example is:
<?php @include('non_existent_file'); ?>In this case, @ not only suppresses error messages for non-existing file, it also suppresses any error messages coming from the included file when it does exist. Create file test.php :
<?php @include('test.inc'); ?>Create test.inc :
<?php <?php garbage ?>The "undefined constant" PHP notice message is suppressed by @ .