发布时间:2013-04-10 21:28:57
1.closesocket(一般不会立即关闭而经历TIME_WAIT的过程)后想继续重用该socket:BOOL bReuseaddr=TRUE;setsockopt(s,SOL_SOCKET ,SO_REUSEADDR,(const char*)&bReuseaddr,sizeof(BOOL));2. 如果要已经处于连接状态的soket在调用closesocket后强制关闭,不经历TIME_WAIT的过程:BOOL bDontLinger = FALSE;.........【阅读全文】
发布时间:2013-01-17 10:41:04
内容export JAVA_HOME=/usr/share/jdk1.6.0_14export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar修改的文件,所有用户可用,修改 /etc/profile单个用户可用,修改~/.bash_profile......【阅读全文】
发布时间:2012-10-31 11:13:23
first go to mysql install dirmysql.exe -u root -penter your password.check exist databases:mysql>show databases;create the db:mysql>create database abc;create the db use some charset beside default:mysql>create database if not exists abc default charset .........【阅读全文】