anetPeerToString() refactoring and more explicit checks.
anetPeerToString() refactoring and more explicit checks.

Related to PR #2010.

harrisonfeng/redis,NBSW/redis,j0hnma/hszredis,zczhuohuo/redis,LongXQ/redis,j0hnma/szredis,mcanthony/redis,programmecat/redis,hedisdb/hedis,xlzhan/redis,fengshao0907/redis,yossigo/redis,davidradunz/redis,sunheehnus/redis,francischan714/redis,allengaller/redis,AplayER/redis,elkingtonmcb/redis,supasate/redis,soveran/redis,ipmobiletech/redis,Aliceljm1/redis,kensou97/redis,yuhc/redis-benchmark-enhanced,devaos/redis,Soledad89/redis,zczhuohuo/redis,kaushik94/redis,csuhawk/redis,weizijun/redis,nuxeh/redis,pkdevbox/redis,mumingv/redis,wprice/redis,mverrilli/redis,cnbin/redis,GitHubMota/redis,zczhuohuo/redis,wenxueliu/redis_comment,yossigo/redis,jackyan/redis,brg-liuwei/redis,linfangrong/redis,blackmady/redis,qiyang0221/redis,wbailey5/redis,allengaller/redis,riyan8250/redis,ipmobiletech/redis,valdsJohn/redis,timothyohare/3rdPartySrc-redis,cloudrain21/redis,yossigo/redis,ouyangkongtong/redis,rouzier/redis,ncopa/redis,CodeJuan/redis,jackyan/redis,flashbuckets/redis,atreeyang/redis,takeshineshiro/redis,riyan8250/redis,netroby/redis,alenslan/redis,GitHubMota/redis,hedisdb/hedis,simplestbest/redis,gilala/hbjredis,z-fork/redis,Markgorden/redis,roth1002/redis,xlzhan/redis,ipmobiletech/redis,kaushik94/redis,taoguan/redis,healerkx/redis,guker/redis,YuanZhewei/redis,devaos/redis,hornen/redis,iandyh/redis,SyntaxStacks/redis,xujunhai1991/redis,spinlock/redis,SummonY/redis,pkdevbox/redis,PKRoma/redis,kaushik94/redis,nnog/redis,itamarhaber/redis,spinlock/redis,colstrom/redis,kmiku7/redis,cloudrain21/redis,ton31337/redis,josiahcarlson/redis,wenxueliu/redis_comment,StevenTsai/redis,rogerlz/redis,rogerlz/redis,kensou97/redis,citusdata/redis,nnog/redis,universsky/redis,StevenTsai/redis,itamarhaber/redis,rogerlz/redis,4396/redis,h0x91b/redis,nnog/redis,francischan714/redis,dayuoba/redis,wujf/redis,colstrom/redis,LongXQ/redis,YuraLukashik/redis,JoeWoo/redis,YuraLukashik/redis,tellapart/redis,allengaller/redis,universsky/redis,soveran/redis,elkingtonmcb/redis,rogerchina/redis,h0x91b/redis,hornen/redis,itamarhaber/redis,atreeyang/redis,thomasdarimont/redis,saisai/redis,jasonkying/redis,hgl888/redis,duanx/redis,wprice/redis,kaushik94/redis,wujf/redis,mingyaaaa/redis,gilala/bjredis,saisai/redis,PradheepShrinivasan/redis,harrisonfeng/redis,Aaron1992/redis,aim-for-better/redis,dayuoba/redis,Aliceljm1/redis,valdsJohn/redis,rogerchina/redis,saisai/redis,nuxeh/redis,taoguan/redis,PKRoma/redis,huyuezheng/redis,izhoujie/redis,kmiku7/redis,holstvoogd/redis,ouyangkongtong/redis,ofirluzon/redis,holstvoogd/redis,soloestoy/redis,arijitvt/redis,charsyam/redis,ErikDubbelboer/redis,GrimDerp/redis,NBSW/redis,takeshineshiro/redis,roth1002/redis,4396/redis,rouzier/redis,csuhawk/redis,oranagra/redis,RepmujNetsik/redis,brg-liuwei/redis,xlzhan/redis,pkdevbox/redis,190235047/redis,badboy/redis,linfangrong/redis,wangyikai/redis,iandyh/redis,atreeyang/redis,davidradunz/redis,simplestbest/redis,mattsta/redis,gilala/bjredis,rouzier/redis,vincent-vivian-liu/redis,dayuoba/redis,mcanthony/redis,Aaron1992/redis,a-pavlov/redis,izhoujie/redis,jasonkying/redis,kmiku7/redis,Sciumo/redis,seppo0010/rlite-server,oranagra/redis,weizijun/redis,tanghaodong25/redis,NBSW/redis,qiyang0221/redis,ncopa/redis,Soledad89/redis,zguangyu/redis,fengshao0907/redis,colstrom/redis,gilala/bjredis,OmarQunsul/graph-redis,itugs/redis,linfangrong/redis,PradheepShrinivasan/redis,yuhc/redis-benchmark-enhanced,tjschuck/redis,dreamquster/redis,ErikDubbelboer/redis,ncopa/redis,arijitvt/redis,ton31337/redis,jackyan/redis,alenslan/redis,tanghaodong25/redis,supasate/redis,Soledad89/redis,healerkx/redis,fengshao0907/redis,janekmi/redis,colstrom/redis,AALEKH/redis,harrisonfeng/redis,itugs/redis,cnbin/redis,MOON-CLJ/redis,aim-for-better/redis,dayuoba/redis,programmecat/redis,pmem/redis,zhiliaoniu/redis,Aliceljm1/redis,GitHubMota/redis,jackyan/redis,SyntaxStacks/redis,devaos/redis,iandyh/redis,ton31337/redis,hgl888/redis,mverrilli/redis,zguangyu/redis,izhoujie/redis,soloestoy/redis,SyntaxStacks/redis,SyntaxStacks/redis,j0hnma/hszredis,MasahikoSawada/redis,wangyikai/redis,zhiliaoniu/redis,zhcy/redis,mcanthony/redis,janekmi/redis,supasate/redis,vincent-vivian-liu/redis,xlzhan/redis,j0hnma/szredis,ofirluzon/redis,blackmady/redis,july2993/redis,mumingv/redis,OmarQunsul/graph-redis,SummonY/redis,tjschuck/redis,soveran/redis,gilala/hbjredis,mengyou0304/redis,badboy/redis,flashbuckets/redis,antirez/redis,CodeJuan/redis,ytjiang/redis,takeshineshiro/redis,ncopa/redis,zhcy/redis,pmem/redis,clamoriniere1A/redis,davidradunz/redis,july2993/redis,xujunhai1991/redis,ofirluzon/redis,ErikDubbelboer/redis,h0x91b/redis,rogerlz/redis,PradheepShrinivasan/redis,jasonkying/redis,abhiklodh/redis,citusdata/redis,aim-for-better/redis,thomasdarimont/redis,kensou97/redis,zguangyu/redis,4396/redis,takeshineshiro/redis,ctripcorp/redis,vincent-vivian-liu/redis,taoguan/redis,huyuezheng/redis,charsyam/redis,YuanZhewei/redis,soloestoy/redis,holstvoogd/redis,weizijun/redis,mgk/redis,seppo0010/redis,roth1002/redis,citusdata/redis,seppo0010/rlite-server,qiyang0221/redis,LongXQ/redis,oranagra/redis,cnbin/redis,citusdata/redis,RepmujNetsik/redis,xujunhai1991/redis,z-fork/redis,huyuezheng/redis,pcarrier/redis,xuguruogu/redis,MasahikoSawada/redis,mingyaaaa/redis,ton31337/redis,tjschuck/redis,blackmady/redis,kensou97/redis,mumingv/redis,ipmobiletech/redis,sunheehnus/redis,hornen/redis,seandsky/redis,hedisdb/hedis,j0hnma/szredis,badboy/redis,antirez/redis,mengyou0304/redis,josiahcarlson/redis,clamoriniere1A/redis,badboy/redis,yossigo/redis,valdsJohn/redis,riyan8250/redis,Aaron1992/redis,soloestoy/redis,spinlock/redis,iandyh/redis,modulexcite/redis,rouzier/redis,holstvoogd/redis,ctripcorp/redis,YongMan/redis,shining-yang/redis,cloudrain21/redis,roth1002/redis,arijitvt/redis,modulexcite/redis,j0hnma/hszredis,honestme/redis,z-fork/redis,oranagra/redis,cnbin/redis,MasahikoSawada/redis,antirez/redis,MOON-CLJ/redis,AplayER/redis,modulexcite/redis,YongMan/redis,jingjidejuren/redis,wenxueliu/redis_comment,thomasdarimont/redis,rogerchina/redis,fengshao0907/redis,ytjiang/redis,abhiklodh/redis,Markgorden/redis,antirez/redis,ytjiang/redis,GrimDerp/redis,AALEKH/redis,StevenTsai/redis,seandsky/redis,twskipper/redis,AplayER/redis,dreamquster/redis,CodeJuan/redis,shreesundara/redis,mgk/redis,RepmujNetsik/redis,MOON-CLJ/redis,wenxueliu/redis_comment,flashbuckets/redis,allengaller/redis,linfangrong/redis,cusspvz/redis,francischan714/redis,weizijun/redis,PKRoma/redis,ctripcorp/redis,pedigree/redis,CodeJuan/redis,mattsta/redis,simplestbest/redis,neomantra/redis,wangyikai/redis,davidradunz/redis,a-pavlov/redis,netroby/redis,cloudrain21/redis,twskipper/redis,francischan714/redis,tellapart/redis,gaoxianglong/redis,tanghaodong25/redis,seandsky/redis,GrimDerp/redis,gaoxianglong/redis,healerkx/redis,ErikDubbelboer/redis,hgl888/redis,ituncle/redis,sunheehnus/redis,soveran/redis,ctripcorp/redis,timothyohare/3rdPartySrc-redis,arijitvt/redis,shining-yang/redis,mengyou0304/redis,j0hnma/szredis,devaos/redis,charsyam/redis,saisai/redis,taoguan/redis,narma/redis,zczhuohuo/redis,Aaron1992/redis,dreamquster/redis,zhiliaoniu/redis,wbailey5/redis,neomantra/redis,mingyaaaa/redis,shining-yang/redis,wbailey5/redis,universsky/redis,mverrilli/redis,JoeWoo/redis,LongXQ/redis,GrimDerp/redis,mengyou0304/redis,nnog/redis,Aliceljm1/redis,hawkchch/redis,hawkchch/redis,190235047/redis,july2993/redis,pcarrier/redis,hedisdb/hedis,healerkx/redis,aim-for-better/redis,alenslan/redis,thomasdarimont/redis,pedigree/redis,JoeWoo/redis,timothyohare/3rdPartySrc-redis,OmarQunsul/graph-redis,Sciumo/redis,shreesundara/redis,pedigree/redis,ituncle/redis,july2993/redis,Sciumo/redis,gilala/hbjredis,honestme/redis,gilala/hbjredis,ofirluzon/redis,itugs/redis,pmem/redis,YongMan/redis,wprice/redis,190235047/redis,cusspvz/redis,simplestbest/redis,tellapart/redis,mgk/redis,pcarrier/redis,charsyam/redis,ituncle/redis,PKRoma/redis,duanx/redis,zhcy/redis,twskipper/redis,flashbuckets/redis,neomantra/redis,Soledad89/redis,harrisonfeng/redis,Sciumo/redis,narma/redis,izhoujie/redis,guker/redis,neomantra/redis,honestme/redis,MasahikoSawada/redis,ytjiang/redis,janekmi/redis,z-fork/redis,mverrilli/redis,wbailey5/redis,xuguruogu/redis,rogerchina/redis,josiahcarlson/redis,yuhc/redis-benchmark-enhanced,jingjidejuren/redis,GitHubMota/redis,kmiku7/redis,clamoriniere1A/redis,qiyang0221/redis,190235047/redis,neomantra/redis,Wangyao14cyy/redis,j0hnma/hszredis,cusspvz/redis,mgk/redis,pedigree/redis,pcarrier/redis,OmarQunsul/graph-redis,netroby/redis,csuhawk/redis,mattsta/redis,janekmi/redis,Wangyao14cyy/redis,xuguruogu/redis,AALEKH/redis,Markgorden/redis,ouyangkongtong/redis,RepmujNetsik/redis,elkingtonmcb/redis,a-pavlov/redis,cusspvz/redis,xuguruogu/redis,mcanthony/redis,dreamquster/redis,pkdevbox/redis,shreesundara/redis,jasonkying/redis,4396/redis,duanx/redis,yossigo/redis,zguangyu/redis,StevenTsai/redis,guker/redis,wangyikai/redis,oranagra/redis,charsyam/redis,brg-liuwei/redis,alenslan/redis,supasate/redis,guker/redis,wprice/redis,josiahcarlson/redis,seppo0010/rlite-server,atreeyang/redis,modulexcite/redis,PKRoma/redis,csuhawk/redis,clamoriniere1A/redis,abhiklodh/redis,mingyaaaa/redis,ituncle/redis,JoeWoo/redis,SummonY/redis,shreesundara/redis,universsky/redis,seppo0010/redis,seandsky/redis,a-pavlov/redis,netroby/redis,soloestoy/redis,Wangyao14cyy/redis,Wangyao14cyy/redis,elkingtonmcb/redis,itamarhaber/redis,jingjidejuren/redis,gilala/bjredis,hawkchch/redis,shining-yang/redis,vincent-vivian-liu/redis,tanghaodong25/redis,xujunhai1991/redis,narma/redis,brg-liuwei/redis,YuanZhewei/redis,twskipper/redis,AALEKH/redis,tjschuck/redis,PradheepShrinivasan/redis,blackmady/redis,hornen/redis,gaoxianglong/redis,NBSW/redis,hawkchch/redis,ouyangkongtong/redis,wujf/redis,mumingv/redis,yuhc/redis-benchmark-enhanced,AplayER/redis,ofirluzon/redis,YuraLukashik/redis,seppo0010/rlite-server,sunheehnus/redis,SummonY/redis,h0x91b/redis,zhcy/redis,seppo0010/redis,spinlock/redis,itugs/redis,riyan8250/redis,jingjidejuren/redis,duanx/redis,valdsJohn/redis,pmem/redis,nuxeh/redis,nuxeh/redis,timothyohare/3rdPartySrc-redis,honestme/redis,hgl888/redis,YongMan/redis,abhiklodh/redis,huyuezheng/redis,YuraLukashik/redis,YuanZhewei/redis,programmecat/redis,programmecat/redis,zhiliaoniu/redis,wujf/redis,Markgorden/redis,gaoxianglong/redis,tellapart/redis,seppo0010/redis