Profile

Cover photo
李恒林
Lives in 中国/成都
32,307 views
AboutPostsPhotosVideos

Stream

李恒林

Questions  - 
 
How can I downgrade a sslsocket() to socket()?Any idea or info is great help and appreciative!
1
李恒林's profile photo
 
I found the way。sslsocket() is A record, int otp_src_root/lib/ssl/src/ssl_api.hrl
Add a comment...

李恒林

Meta Info/Questions  - 
 
bad systemd-206 dependence : no kmod-14-r1 in the portage tree util now.
1
Add a comment...

李恒林

Compilers & Tools  - 
 
which optimize level (-On) gcc or clang will ignore "if(0)" ? I use "if(0)" for debug purpose. Any info or link is great appreciated!
1
Jay Sprenkle's profile photo李恒林's profile photo
21 comments
 
+Jay Sprenkle I tried! And the answer is Clang will generating the same assembler, if(0){...} will be ignored under -O0 and -O2.
Add a comment...

李恒林

Shared publicly  - 
 
昨天的软件园,好美的雨!
 ·  Translate
1
Add a comment...

李恒林

Shared publicly  - 
 
How can I call back java interface methods or abstract methods from c++ multithread method using JNI ?Any info or link is great help to me!
Java
Everything & anything about Java
View community
1
Add a comment...

李恒林

Shared publicly  - 
 
good job!
1
Add a comment...

李恒林

General Discussion  - 
 
For systemd,switch from Funtoo to Gentoo done! get the portage tree , link the profile ,re install portage an update the world .Bu need suffering the slow sync!!!
2
Andreas Sturmlechner's profile photo
 
Instead of the slow sync, you could just download the latest available portage tarball and unpack that.

Hints:
- create a funtoo-migration package.keywords
- use a local funtoo-migration overlay for packages
...both to avoid useless downgrades.
Add a comment...

李恒林

General Discussion  - 
 
Why NTFS read is so slow? Using the kernel NTFS driver and togging on the write attribute, on my 7200rpm/s drive it's only 1.1M/s copy from NTFS partition,more fucking thing is it's exhaust all my i5 CPU ! Maybe my .config has some problem or it's a bug or something else ? Any info is appreciated an welcome!
1
Andreas Sturmlechner's profile photoTom Wijsman's profile photo李恒林's profile photo
3 comments
 
I will. Thinks you two!
Add a comment...

李恒林

Newbie Discussion  - 
 
class Foo;
Foo foo1 = new Foo;
Foo foo2 = new Foo();
// what's difference between foo1 and // foo2 ? I chose foo1.
2
Alexander Strebkov's profile photoIngo Elsen's profile photo李恒林's profile photoRoberto Parolin's profile photo
8 comments
 
class Foo;  // forward declared class.
Foo* foo1 = new Foo(); // should fail  to compile because the compiler doesn't know the size of Foo.
Add a comment...

李恒林

Shared publicly  - 
 
就是这样子。
 ·  Translate
1
Add a comment...

李恒林

Shared publicly  - 
 
JNI+多线程好麻烦啊!
 ·  Translate
1
Add a comment...

李恒林

Shared publicly  - 
 
gxmpp  https://github.com/henglinli/gxmpp  —— XMPP lib for android without TLS/SSL support split from libjinle.  

之前一直用的是gloox http://camaya.net/gloox/,上周gloox出现了连接长时间闲置后断开的情况,于是就展开了更进一步的研究:

libstrophe http://strophe.im/libstrophe/  和 iksemel  https://code.google.com/p/iksemel/ 是C实现的,不感兴趣,不过iksemel ndk 能 build通过;

Swiften http://swift.im/swiften/ 依赖太重了,最开始以为它只依赖asio;

gloox呢还行吧,就是代码看起来像C,还有就是上面提到的问题;

txmpp https://github.com/silas/txmpp readme 说自己是portions of libjingle with various bits removed and tweaked,就是 “2 years ago” 的状态,我看着“不爽”,于是就有了 gxmpp。

最后问题当然是解决了——
gloox : http://stackoverflow.com/questions/3543294/c-gloox-how-to-check-when-connection-is-down
libjinle : https://code.google.com/p/libjingle/wiki/FixTipOfConnectionDrop
方法就是自己周期性的发送xmpping。
 ·  Translate
1
Add a comment...
People
Work
Occupation
sw dev
Skills
linux c/c++ webdev
Basic Information
Gender
Male
Other names
lee
Story
Tagline
有你在,就有我在......你的未来我无法相让。
Introduction

一个开源事业支持者

一个funtoo用户

一个emacser

一个玩家

一个人

我的Github主页

兴趣爱好
    GNU/Linux, ps3 hack, 动漫, 其他有趣的东西。

联系方式
    李恒林 
     henglinli@gmail.com 
     Phone: +8618682697629 
     QQ: 1751430148
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
中国/成都
Previously
+30° 58' 14", +104° 25' 14"
Links