All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.common.netty.util.NetUtil.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????27-com/groupbyinc/flux/common/netty/util/NetUtiljava/lang/ObjectNetUtil.java/com/groupbyinc/flux/common/netty/util/NetUtil$1
LOCALHOST4Ljava/net/Inet4Address;
LOCALHOST6Ljava/net/Inet6Address;	LOCALHOSTLjava/net/InetAddress;LOOPBACK_IFLjava/net/NetworkInterface;	SOMAXCONNIIPV6_WORD_COUNTIPV6_MAX_CHAR_COUNT'IPV6_BYTE_COUNTIPV6_MAX_CHAR_BETWEEN_SEPARATORIPV6_MIN_SEPARATORSIPV6_MAX_SEPARATORSIPV4_MAX_CHAR_BETWEEN_SEPARATORIPV4_SEPARATORSIPV4_PREFERREDZIPV6_ADDRESSES_PREFERREDloggerGLcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLogger;sysctlGetInt'(Ljava/lang/String;)Ljava/lang/Integer;java/io/IOException'java/lang/ProcessBuilder)java/lang/String+sysctl-([Ljava/lang/String;)V/0
*1start()Ljava/lang/Process;34
*5java/lang/Process7getInputStream()Ljava/io/InputStream;9:
8;java/io/InputStreamReader=(Ljava/io/InputStream;)V/?
>@java/io/BufferedReaderB(Ljava/io/Reader;)V/D
CEreadLine()Ljava/lang/String;GH
CI
startsWith(Ljava/lang/String;)ZKL
,Mlength()IOP
,Qjava/io/InputStreamScharAt(I)CUV
,Wjava/lang/CharacterYisDigit(C)Z[\
Z]	substring(II)Ljava/lang/String;_`
,ajava/lang/IntegercvalueOfe&
dfclose()Vhi
Cjdestroyli
8mjava/lang/ThrowableoilineLjava/lang/String;isLjava/io/InputStream;isrLjava/io/InputStreamReader;brLjava/io/BufferedReader;	sysctlKeyprocessLjava/lang/Process;isIpV4StackPreferred()Z !	isIpV6AddressesPreferred"!	?"createByteArrayFromIpAddressString(Ljava/lang/String;)[BisValidIpV4Address?L
?validIpV4ToBytes??
?isValidIpV6Address?L
?indexOf(I)I??
,?
getIPv6ByName(Ljava/lang/CharSequence;Z)[B??
?
percentPosipAddressStringdecimalDigit(Ljava/lang/String;I)Istrposipv4WordToByte(Ljava/lang/String;II)B??
?ipfromtoExclusiveret(II)I??
,???
?intToIpAddress(I)Ljava/lang/String;java/lang/StringBuilder?(I)V/?
??append(I)Ljava/lang/StringBuilder;??
??(C)Ljava/lang/StringBuilder;??
??toString?H
??bufLjava/lang/StringBuilder;bytesToIpAddress([B)Ljava/lang/String;([BII)Ljava/lang/String;??
?bytes[BtoAddressString([BIZ)Ljava/lang/String;??
?"java/lang/IllegalArgumentException?/i
??length: ?-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? (expected: 4 or 16)?(Ljava/lang/String;)V/?
??offsetisValidHexChar?\
?isValidIPv4MappedChar?\
?(Ljava/lang/String;II)Z??
?colons
compressBegintmpCharC	ipv4Startjipv4EndendcwordLenisValidIpV4Word(Ljava/lang/CharSequence;II)Zjava/lang/CharSequence??WisValidNumericChar?\
?c0c2c1wordLjava/lang/CharSequence;lenisValidIPv4MappedSeparators(BBZ)Zb0Bb1
mustBeZeroisValidIPv4Mapped([BIII)Z??
@com/groupbyinc/flux/common/netty/util/internal/PlatformDependentisZero([BII)Z
currentIndexcompressLength??


toExcluded	getByName1(Ljava/lang/CharSequence;)Ljava/net/Inet6Address;2(Ljava/lang/CharSequence;Z)Ljava/net/Inet6Address;

java/net/UnknownHostException?java/net/Inet6AddressgetByAddress.(Ljava/lang/String;[BI)Ljava/net/Inet6Address;
java/lang/RuntimeException(Ljava/lang/Throwable;)V/
eLjava/net/UnknownHostException;
ipv4Mapped?Q??
$9com/groupbyinc/flux/common/netty/util/internal/StringUtil&decodeHexNibble(C)I()
'*tmpipLengthvaluebeginipv6Separatorsipv4Separators
needsShiftisCompressedtoSocketAddressString0(Ljava/net/InetSocketAddress;)Ljava/lang/String;java/net/InetSocketAddress6getPort8P
79e?
,;isUnresolved=~
7>javaVersion@P
A
getHostStringCH
7DgetHostNameFH
7GnewSocketAddressStringBuilder@(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/StringBuilder;IJ
K
getAddress()Ljava/net/InetAddress;MN
7O*(Ljava/net/InetAddress;)Ljava/lang/String;?Q
Rjava/net/Inet4AddressT
hostStringsbaddressaddrLjava/net/InetSocketAddress;port'(Ljava/lang/String;I)Ljava/lang/String;hostportStripv4hostLen
stringBuilder+(Ljava/net/InetAddress;Z)Ljava/lang/String;?b
cjava/net/InetAddressegetHostAddressgH
fhUnhandled type: j-(Ljava/lang/Object;)Ljava/lang/StringBuilder;?l
?m()[BMo
fp[IrtoHexStringt?
duinRangeEndExclusive(III)Zwx
y::{??
currentLengthisIpv4MappedwordscurrentStart
shortestStartshortestLengthshortestEndb
?this/Lcom/groupbyinc/flux/common/netty/util/NetUtil;
access$000I()Lcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLogger;#$	?
access$100%&
?x0java/lang/Exception?java/net/SocketException?java.net.preferIPv4Stack?Acom/groupbyinc/flux/common/netty/util/internal/SystemPropertyUtil?
getBoolean(Ljava/lang/String;Z)Z??
??java.net.preferIPv6Addresses?Lcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLoggerFactory?getInstanceZ(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLogger;??
??-Djava.net.preferIPv4Stack: {}?java/lang/Boolean?(Z)Ljava/lang/Boolean;e?
??Ecom/groupbyinc/flux/common/netty/util/internal/logging/InternalLogger?debug'(Ljava/lang/String;Ljava/lang/Object;)V????"-Djava.net.preferIPv6Addresses: {}?	localhost?,(Ljava/lang/String;[B)Ljava/net/InetAddress;?
f?throwException?
?		?
	?java/util/ArrayList?
??java/net/NetworkInterface?getNetworkInterfaces()Ljava/util/Enumeration;??
??java/util/List?java/util/Enumeration?hasMoreElements?~??nextElement()Ljava/lang/Object;????:com/groupbyinc/flux/common/netty/util/internal/SocketUtils?addressesFromNetworkInterface4(Ljava/net/NetworkInterface;)Ljava/util/Enumeration;??
??add(Ljava/lang/Object;)Z????;Failed to retrieve the list of available network interfaces?warn*(Ljava/lang/String;Ljava/lang/Throwable;)V????iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext?~??next????isLoopbackAddress?~
f?
isLoopback?~
??%Failed to find the loopback interface?????Loopback interface: {} ({}, {})?getName?H
??getDisplayNameH
?((Ljava/lang/String;[Ljava/lang/Object;)V??getByInetAddress3(Ljava/net/InetAddress;)Ljava/net/NetworkInterface;
?+Using hard-coded IPv6 localhost address: {}
+Using hard-coded IPv4 localhost address: {}	
	
?java/security/AccessControllerdoPrivileged4(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
intValueP
d	Ljava/lang/Exception;iface
interfaces4Ljava/util/Enumeration;Ljava/util/Enumeration;Ljava/net/SocketException;/Ljava/util/Enumeration;LOCALHOST4_BYTESLOCALHOST6_BYTES
localhost4
localhost6ifaces-Ljava/util/List;Ljava/util/List;
loopbackIfaceloopbackAddr
ConstantValueCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsLocalVariableTypeTable
SourceFileInnerClasses1	

........ !"!#$!
%&/
??*Y?,Y.SY*S?2?6L+?Y,?AN?CY-?F:?J:*?N?K?Rd6*?R?9?X?^?&`?R?b?g:?k+?+?n??????:?k+?+?n?:?k?:	+?+?n	?0r???????w???????0HI?q7drs?tu&vw0uxy?zs?{|1Z:<=&>0@7A@BRC_DrJwM{ND?B?H?J?M?N?H?J?M?N2n?I,8T>C,?5d???d?,8T>Cp?	,8p?	
,8p3(	}~/???1[	?~/???1f	??/?C*???*???*???1*?X[?**?Rd?bK*%??<?
*?bK*????00?C?s1*
norst)w0x4y;|A~2??
??/=	*?X0d?0	?s	?1?
??/?3*??>????
h*??`>????
h*??`??0*3?s3?3?-?1&	??	?????$?'?2???/?	M?Y**.??Y*?X=?>:?*`?X:??66??	6666?**?X=?ٙ?	??
??%?.P:!??*d?X:???d6?6????
??	?
??d6d6	*	?X?ܙ2*	d?X?ܙ*	d?X?ܙ*	d?X?ܚ??	?	?!*	?X6

0?
:???	????*%`??6

?6
*
?߬??*??Y60???c*`??Y60?P*`??Y60??1?9?
9?&2?#5?5?5?9???9??*`??????0R??AA??0T??????????????1"IKLN$O9P?O?T2
???;"?@?@
?\/b*0?	9?A?	F?a?
f???0*??1X2@
?\/G0?
9???0??1\2@
?\/Hf?	F???0??1`2@
??/b??????0 ?????!1g2@
??/?H`??6?4?/?	?$*d3*d3??*d????04H??HH?H	9?!1kl1m<nGl2@? @	?L/4
**?R?߬0
?s1x
??/?wd>?n?h*.`??Y6?Y*??O*.`Y666666	6
66	?S*	??6

??.?:?
	d??
?`,???	ddxx6???,?~xz~??T,?z~xz~??T	`6?R*??:?E???*??:???

???66,?dd6?	66?W?	d6??????
?
`??	`??,????????,?%?u?3*	d????_*	d????O*	d??????#*	d????)*	d?????*	d?????dxx6~dhz~
h`z~`6????,??T66?C
?ٙ?

????
	6?	d??
?+	dxx`6?	?????6
???	d??
,???
?
6?G
??
?
?*??:?!
?"
?*??:?	?	????	ddxx6~dhz~
h`z~`6????,??T??d6?	d??
??
?%
`??*??:?x*??:?k
?7
?_
?)?*??:?F?*??:?2`,??)?*d??:??*??:???	d?	ddxx6,?~xz~??T,?z~xz~??T`6	?
	,??C	,???6		,??`,?d6?,,d3T?????,T??	???6		?+	`6`6,??,,3T,T?	????
,
,[TT,?0??^,-
,7@??
H?,????"!????-???	??.?/?q	!?0
$?1'?2!?H3!
1?o?????????!?$?'?-?7?T?W?u?w???????????????????????
????? ?#?&?-?r??????????????????"$.	1
47
LNSZcew?}? ?!?$?&?'?(?)?+?,?.?0	5'64769C;H<l??B?C?E?F?G?I?J	O P;SBTNVUWXYcZp[zZ?]?^?Y?b?c?d?e?f?g?b?n?r?u2k9?'
??, ?e@??)*5%5?
?@?8?,$?1	
.	45/+\*?:????Y`+?R`??*?а??Y`+?R`??:? *?X[?*d?X]?
*?а[??*??]???04a]sa[sa_!\`.3a?1??	??.?I?P?2??2?	?Q/0*?d?0?
1?	?b/?9*?U?*?i?*????Y??Y??k??*?n???տ*?q?ǰ09?
9"!1????/?2"
??/?
??
N-?`66?'-*x3?~x*x`3?~?O????6666-??:-.??(6?!?d6		?6	66?????d6		?6	6?	66`6
??Y'??:
?4-.?v??W6-???:??W-.?v??W????
?z?)|??W?
?-.}??6?-.?v??W66-???
?z?qd
?z?"?
?:??W?.??W?/?)-.z??W.??W-.?~??W?*-.?v??W?d
?z?|??W???e???0?k~	?~	 !2?!??????"!??r?q??<?????B???(?
???1?7????3?9?<???B?L?S?X?_?d?k?r?v?z?}??????????????????????????
?#/2<HVbmu?? ?!?#?%?'??,27?s*????%?!*@?,
0?
wx/Y????0 .3?1;2@/i/3*???0??1
AC??/???13?&//*???0?s133(?i/???????????????????????????????????YTYTYTYTK?YTYTYTYTYTYTYTYTYTY	TY
TYTYTY
TYTYTLM?*???UM?N-??,??N?+???N?
:??-????Y??:??:?3???)????:?ڹ??
??W??ӧ:?????::??:???E????:??:		???%	???f:

??:
:?	??ק???s??:???>????:???'??:		???:	???f:???????????:??????-????Y??SY?SY?iS??i?d???	???-??-:?G??
,??,:?5:?.??
,??,:?:???
,??,:????Y???d?????????????????/G^?/Gw^`wwyw0?? ? ??5 "
 #mY

W,q"	P3?q"	?,?
 #SZ%??&??	'	??(??)+.,1|-
4*?5 !W,q$	?q$	??)*1:N{
????-?>?S??????????????????????????????????????????+?.?1?P?a?m?u?y?}?????????????????????????????????????"?*?/?8?D?G?L?X?^?`?e?q?w?~??????????12???U??U????,?B???f????(???
??A?B?.V?Xp?U??fp?U??f56





© 2015 - 2024 Weber Informatics LLC | Privacy Policy