摘要:
server 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 12 using namespace std; 13 14 #define MAX_EVENTS 1000 15 16 struct RP_EVENT_S 17 { 18 int fd; 19 void (*call_back)(int fd, int events, void* args); 20 ... 阅读全文
摘要:
Server:-module(echo).-export([listen/1]).-define(TCP_OPTIONS, [binary, {packet, 0}, {active, false}, {reuseaddr,true}]).% Call echo:listen(Port) to start the service.listen(Port) -> {ok, LSocket} = gen_tcp:listen(Port, ?TCP_OPTIONS), spawn(fun()->accept1(LSocket) end), spawn(fun()->accept2( 阅读全文
摘要:
1. install server 12.042. apt-get install xorg libxp63. apt-get install gnome-core gdm4. apt-get install gnome-system-tools5. apt-get install language-selector-gnome6. apt-get install language-pack-gnome-zh7. apt-get install ibus8. apt-get install ibus-googlepinyin9. apt-get install sysv-rc-conf (服务 阅读全文
摘要:
打开或新建一个VS2010工程项目View菜单Other windows菜单 点击Property Manager 弹出Property Manager框 里面有Debug|Win32和Release|Win32选项,这2个选项可以设置Debug和Release的工程属性设置打开其中一个 双击Microsoft.Cpp.Win32.user会弹出Microsoft.Cpp.Win32.user Property Pages页面, 点击左边VC++ Directories,会出现相应得页面 可以在Include Directories与Library Directories里面设置全局的头文件和 阅读全文
摘要:
1. Win7 64下开发 需下载 CySuiteUSB_3_4_7_B204 http://www.cypress.com/?rID=34870 使用C:\Cypress\Cypress Suite USB 3.4.7\Driver\bin\wlh\x64下的驱动,并修改inf文件,如下: 1 ;for x64 platforms2 [Device.NTamd64]3 ;%VID_04B4&PID_8613.DeviceDesc%=CyUsb, USB\VID_04B4&PID_86134 5 TO:6 7 ;for x64 platforms8 [Device.NTamd6 阅读全文