100+ results for 'java.net.inetaddress'

Not the results you expected?

LdapTLSSocketFactory.java (http://vt-middleware.googlecode.com/svn/) Java · 684 lines

18 import java.io.IOException;

19 import java.io.InputStream;

20 import java.net.InetAddress;

21 import java.net.Socket;

22 import java.net.URI;

TestLockRequestBuilder.java (git://github.com/apache/hive.git) Java · 585 lines

25 import org.junit.Test;

26

27 import java.net.InetAddress;

28 import java.util.List;

29

server_RRPC.java (http://rpc-php-ruby-c-java.googlecode.com/svn/trunk/) Java · 699 lines

11 import java.io.*;

12 import java.lang.reflect.Array;

13 import java.net.InetAddress;

14 import java.net.ServerSocket;

15 import java.net.Socket;

Sendrecv.java (http://jhmtasc.googlecode.com/svn/trunk/) Java · 307 lines

23 import java.net.DatagramPacket;

24 import java.net.DatagramSocket;

25 import java.net.InetAddress;

26 import java.net.InetSocketAddress;

27 import java.net.SocketAddress;

ManagedSocketFactoryTest.java (git://github.com/infinispan/infinispan.git) Java · 224 lines

29 import java.io.IOException;

30 import java.net.DatagramSocket;

31 import java.net.InetAddress;

32 import java.net.InetSocketAddress;

33 import java.net.MulticastSocket;

NetworkInterface.cs (git://github.com/koush/androidmono.git) C# · 202 lines

100 }

101 internal static global::MonoJavaBridge.MethodId _getByInetAddress13713;

102 public static global::java.net.NetworkInterface getByInetAddress(java.net.InetAddress arg0)

103 {

104 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

DiameterAvpFactory.java (http://mobicents.googlecode.com/svn/trunk/) Java · 396 lines ✨ Summary

This Java code provides a set of methods for creating and manipulating Diameter protocol messages, including commands, AVPs (Application-Value Pairs), and grouped AVPs. It allows developers to create specific types of messages with required and optional values, making it easier to implement Diameter protocol functionality in their applications.

174

175 /**

176 * Create an AVP containing a DiameterAvpValue from the java.net.InetAddress value provided. The

177 * AVP type will be determined from the AVP code.

178 *

181 * @return an implementation of the DiameterAvp interface

182 */

183 DiameterAvp createAvp(int avpCode, java.net.InetAddress value) throws NoSuchAvpException;

184

185 /**

186 * Create a vendor-specific AVP containing a DiameterAvpValue from the java.net.InetAddress value provided.

187 * The AVP type will be determined from the AVP code.

188 *

DiameterAvpFactoryImpl.java (http://mobicents.googlecode.com/svn/trunk/) Java · 415 lines ✨ Summary

This Java code defines a factory class for creating various types of Diameter Avp (Application Protocol Data Units) objects, which are used in Diameter signaling protocols. It provides methods to create instances of different Avp classes, such as FailedAvp, ProxyInfoAvp, and VendorSpecificApplicationIdAvp, with optional parameters or default values.

23 package org.mobicents.slee.resource.diameter.base;

24

25 import java.net.InetAddress;

26 import java.util.Date;

27

191 /*

192 * (non-Javadoc)

193 * @see net.java.slee.resource.diameter.base.DiameterAvpFactory#createAvp(int, java.net.InetAddress)

194 */

195 public DiameterAvp createAvp( int avpCode, InetAddress value ) throws NoSuchAvpException

200 /*

201 * (non-Javadoc)

202 * @see net.java.slee.resource.diameter.base.DiameterAvpFactory#createAvp(int, int, java.net.InetAddress)

203 */

204 public DiameterAvp createAvp( int vendorId, int avpCode, InetAddress value ) throws NoSuchAvpException

AvpSet.java (http://mobicents.googlecode.com/svn/trunk/) Java · 814 lines ✨ Summary

This Java code defines a class with various methods for inserting different types of Diameter protocol AVPs (Attribute-Value Pairs) into an object, such as Date, Address, and Grouped AVPs. The methods allow for setting flags to indicate whether the AVP is marked as mandatory or not, and also specify a vendor ID if applicable.

24

25 import java.io.Serializable;

26 import java.net.InetAddress;

27 import java.util.Date;

28

AvpSetImpl.java (http://mobicents.googlecode.com/svn/trunk/) Java · 690 lines ✨ Summary

This Java class, AvpSetImpl, represents a set of Avps (Attribute-Value Pairs). It provides methods to insert and retrieve Avps, as well as manage grouped data. The class implements an iterator contract, allowing for iteration over the set of Avps. It also overrides the toString method for string representation.

31 */

32

33 import java.net.InetAddress;

34 import java.util.ArrayList;

35 import java.util.Arrays;

URLStreamHandler.cs (git://github.com/koush/androidmono.git) C# · 170 lines

78 }

79 internal static global::MonoJavaBridge.MethodId _getHostAddress13973;

80 protected virtual global::java.net.InetAddress getHostAddress(java.net.URL arg0)

81 {

82 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

83 if (!IsClrObject)

84 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.net.URLStreamHandler._getHostAddress13973, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0))) as java.net.InetAddress;

85 else

86 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.net.URLStreamHandler.staticClass, global::java.net.URLStreamHandler._getHostAddress13973, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0))) as java.net.InetAddress;

Socket.cs (git://github.com/koush/androidmono.git) C# · 510 lines

229 }

230 internal static global::MonoJavaBridge.MethodId _getInetAddress13782;

231 public virtual global::java.net.InetAddress getInetAddress()

232 {

233 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

234 if (!IsClrObject)

235 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.net.Socket._getInetAddress13782)) as java.net.InetAddress;

236 else

237 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.net.Socket.staticClass, global::java.net.Socket._getInetAddress13782)) as java.net.InetAddress;

430 }

431 internal static global::MonoJavaBridge.MethodId _Socket13806;

432 public Socket(java.net.InetAddress arg0, int arg1, java.net.InetAddress arg2, int arg3) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)

433 {

434 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

DatagramSocket.cs (git://github.com/koush/androidmono.git) C# · 358 lines

58 }

59 internal static global::MonoJavaBridge.MethodId _connect13608;

60 public virtual void connect(java.net.InetAddress arg0, int arg1)

61 {

62 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

193 }

194 internal static global::MonoJavaBridge.MethodId _getInetAddress13623;

195 public virtual global::java.net.InetAddress getInetAddress()

196 {

197 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

198 if (!IsClrObject)

199 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.net.DatagramSocket._getInetAddress13623)) as java.net.InetAddress;

200 else

201 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.net.DatagramSocket.staticClass, global::java.net.DatagramSocket._getInetAddress13623)) as java.net.InetAddress;

DatagramSocketImpl.cs (git://github.com/koush/androidmono.git) C# · 308 lines

17 public abstract void setOption(int arg0, java.lang.Object arg1);

18 internal static global::MonoJavaBridge.MethodId _join13640;

19 protected abstract void join(java.net.InetAddress arg0);

20 internal static global::MonoJavaBridge.MethodId _close13641;

21 protected abstract void close();

22 internal static global::MonoJavaBridge.MethodId _peek13642;

23 protected abstract int peek(java.net.InetAddress arg0);

24 internal static global::MonoJavaBridge.MethodId _send13643;

25 protected abstract void send(java.net.DatagramPacket arg0);

27 protected abstract void create();

28 internal static global::MonoJavaBridge.MethodId _connect13645;

29 protected virtual void connect(java.net.InetAddress arg0, int arg1)

30 {

31 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

ServerSocket.cs (git://github.com/koush/androidmono.git) C# · 250 lines

130 }

131 internal static global::MonoJavaBridge.MethodId _getInetAddress13747;

132 public virtual global::java.net.InetAddress getInetAddress()

133 {

134 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

135 if (!IsClrObject)

136 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.net.ServerSocket._getInetAddress13747)) as java.net.InetAddress;

137 else

138 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._getInetAddress13747)) as java.net.InetAddress;

211 }

212 internal static global::MonoJavaBridge.MethodId _ServerSocket13757;

213 public ServerSocket(int arg0, int arg1, java.net.InetAddress arg2) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)

214 {

215 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

SocketImpl.cs (git://github.com/koush/androidmono.git) C# · 319 lines

47 protected abstract void connect(java.net.SocketAddress arg0, int arg1);

48 internal static global::MonoJavaBridge.MethodId _connect13820;

49 protected abstract void connect(java.net.InetAddress arg0, int arg1);

50 internal static global::MonoJavaBridge.MethodId _connect13821;

51 protected abstract void connect(java.lang.String arg0, int arg1);

64 protected abstract void listen(int arg0);

65 internal static global::MonoJavaBridge.MethodId _bind13825;

66 protected abstract void bind(java.net.InetAddress arg0, int arg1);

67 internal static global::MonoJavaBridge.MethodId _shutdownInput13826;

68 protected virtual void shutdownInput()

84 }

85 internal static global::MonoJavaBridge.MethodId _getInetAddress13828;

86 protected virtual global::java.net.InetAddress getInetAddress()

87 {

88 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

InetAddress.cs (git://github.com/koush/androidmono.git) C# · 246 lines

70 {

71 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

72 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallStaticObjectMethod(java.net.InetAddress.staticClass, global::java.net.InetAddress._getByName13685, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0))) as java.net.InetAddress;

73 }

74 internal static global::MonoJavaBridge.MethodId _isAnyLocalAddress13686;

205 {

206 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

207 return global::MonoJavaBridge.JavaBridge.WrapJavaArrayObject<java.net.InetAddress>(@__env.CallStaticObjectMethod(java.net.InetAddress.staticClass, global::java.net.InetAddress._getAllByName13701, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0))) as java.net.InetAddress[];

208 }

209 internal static global::MonoJavaBridge.MethodId _getLocalHost13702;

211 {

212 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

213 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallStaticObjectMethod(java.net.InetAddress.staticClass, global::java.net.InetAddress._getLocalHost13702)) as java.net.InetAddress;

214 }

215 private static void InitJNI()

HttpRoute.cs (git://github.com/koush/androidmono.git) C# · 201 lines

58 }

59 internal static global::MonoJavaBridge.MethodId _getLocalAddress16363;

60 public global::java.net.InetAddress getLocalAddress()

61 {

62 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

63 if (!IsClrObject)

64 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::org.apache.http.conn.routing.HttpRoute._getLocalAddress16363)) as java.net.InetAddress;

65 else

66 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::org.apache.http.conn.routing.HttpRoute.staticClass, global::org.apache.http.conn.routing.HttpRoute._getLocalAddress16363)) as java.net.InetAddress;

139 }

140 internal static global::MonoJavaBridge.MethodId _HttpRoute16372;

141 public HttpRoute(org.apache.http.HttpHost arg0, java.net.InetAddress arg1, org.apache.http.HttpHost[] arg2, bool arg3, org.apache.http.conn.routing.RouteInfo_TunnelType arg4, org.apache.http.conn.routing.RouteInfo_LayerType arg5) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)

142 {

143 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

SSLSocket.cs (git://github.com/koush/androidmono.git) C# · 313 lines

63 }

64 internal static global::MonoJavaBridge.MethodId _SSLSocket16019;

65 protected SSLSocket(java.net.InetAddress arg0, int arg1) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)

66 {

67 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

70 }

71 internal static global::MonoJavaBridge.MethodId _SSLSocket16020;

72 protected SSLSocket(java.lang.String arg0, int arg1, java.net.InetAddress arg2, int arg3) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)

73 {

74 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

77 }

78 internal static global::MonoJavaBridge.MethodId _SSLSocket16021;

79 protected SSLSocket(java.net.InetAddress arg0, int arg1, java.net.InetAddress arg2, int arg3) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)

80 {

81 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

RTPStreamSender.java (http://red5phone.googlecode.com/svn/trunk/) Java · 528 lines

5 import local.net.RtpSocket;

6

7 import java.net.InetAddress;

8 import java.net.DatagramSocket;

9

Network.java (git://pkgs.fedoraproject.org/ice) Java · 1198 lines

688 getLocalAddress(int protocol)

689 {

690 java.net.InetAddress addr = null;

691

692 try

751 }

752

753 for(java.net.InetAddress addr : addrs)

754 {

755 if(protocol == EnableBoth || isValidAddr(addr, protocol))

782 getLocalAddresses(int protocol)

783 {

784 java.util.ArrayList<java.net.InetAddress> result = new java.util.ArrayList<java.net.InetAddress>();

785 try

786 {

TestRouteDirector.java (git://pkgs.fedoraproject.org/httpcomponents-client) Java · 476 lines

28 package org.apache.http.conn.routing;

29

30 import java.net.InetAddress;

31

32 import org.apache.http.HttpHost;

RouteInfo.cs (git://github.com/koush/androidmono.git) C# · 136 lines

5 {

6 bool isSecure();

7 global::java.net.InetAddress getLocalAddress();

8 global::org.apache.http.HttpHost getTargetHost();

9 int getHopCount();

37 }

38 internal static global::MonoJavaBridge.MethodId _getLocalAddress16386;

39 global::java.net.InetAddress org.apache.http.conn.routing.RouteInfo.getLocalAddress()

40 {

41 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

42 if (!IsClrObject)

43 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::org.apache.http.conn.routing.RouteInfo_._getLocalAddress16386)) as java.net.InetAddress;

44 else

45 return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::org.apache.http.conn.routing.RouteInfo_.staticClass, global::org.apache.http.conn.routing.RouteInfo_._getLocalAddress16386)) as java.net.InetAddress;

TestMachineList.java (git://github.com/apache/hadoop-common.git) Java · 291 lines

23 import static org.junit.Assert.fail;

24

25 import java.net.InetAddress;

26 import java.net.UnknownHostException;

27 import java.util.Collection;

SSLCertificateSocketFactory.cs (git://github.com/koush/androidmono.git) C# · 137 lines

64 }

65 internal static global::MonoJavaBridge.MethodId _createSocket5247;

66 public override global::java.net.Socket createSocket(java.net.InetAddress arg0, int arg1, java.net.InetAddress arg2, int arg3)

67 {

68 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

73 }

74 internal static global::MonoJavaBridge.MethodId _createSocket5248;

75 public override global::java.net.Socket createSocket(java.net.InetAddress arg0, int arg1)

76 {

77 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

82 }

83 internal static global::MonoJavaBridge.MethodId _createSocket5249;

84 public override global::java.net.Socket createSocket(java.lang.String arg0, int arg1, java.net.InetAddress arg2, int arg3)

85 {

86 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

Inet6AddressTest.java (https://github.com/apache/harmony-classlib.git) Java · 966 lines

20 import java.io.Serializable;

21 import java.net.Inet6Address;

22 import java.net.InetAddress;

23 import java.net.NetworkInterface;

24 import java.net.UnknownHostException;

KrbSafeBodyDecoderTest.java (https://github.com/apache/directory-server.git) Java · 692 lines

27 import static org.junit.Assert.*;

28

29 import java.net.InetAddress;

30 import java.nio.ByteBuffer;

31 import java.util.Arrays;

EncKrbPrivPartDecoderTest.java (https://github.com/apache/directory-server.git) Java · 692 lines

27 import static org.junit.Assert.fail;

28

29 import java.net.InetAddress;

30 import java.nio.ByteBuffer;

31 import java.util.Arrays;

GettableByIndexData.java (https://github.com/apache/cassandra.git) Java · 592 lines

20 import java.math.BigDecimal;

21 import java.math.BigInteger;

22 import java.net.InetAddress;

23 import java.nio.ByteBuffer;

24 import java.util.*;

MessageReceiver.java (http://kouchat.googlecode.com/svn/) Java · 259 lines

24 import java.io.IOException;

25 import java.net.DatagramPacket;

26 import java.net.InetAddress;

27 import java.net.MulticastSocket;

28 import java.net.NetworkInterface;

ForwardedHeaderHandlerSpec.scala (git://github.com/playframework/Play20.git) Scala · 528 lines

5 package play.core.server.common

6

7 import java.net.InetAddress

8

9 import com.google.common.net.InetAddresses

TestRouteDirector.java (http://open-gpstracker.googlecode.com/svn/trunk/) Java · 479 lines

28 package org.apache.ogt.http.conn.routing;

29

30 import java.net.InetAddress;

31

32 import org.apache.ogt.http.HttpHost;

ForwardedHeaderHandlerSpec.scala (git://github.com/playframework/Play20.git) Scala · 423 lines

4 package play.core.server.common

5

6 import java.net.InetAddress

7 import org.specs2.mutable.Specification

8 import org.specs2.specification.Scope

DataTypeJUnitTest.java (https://gitlab.com/kidaa/incubator-geode.git) Java · 617 lines

10 import java.math.BigDecimal;

11 import java.math.BigInteger;

12 import java.net.InetAddress;

13 import java.util.ArrayList;

14 import java.util.Date;

143 byte[] bytes = baos.toByteArray();

144 String type = DataType.getDataType(bytes);

145 assertEquals("java.net.InetAddress", type);

146 }

147 @Test

CacheServerStats.java (https://gitlab.com/kidaa/incubator-geode.git) Java · 1139 lines

12 package com.gemstone.gemfire.internal.cache.tier.sockets;

13

14 import java.net.InetAddress;

15

16 import com.gemstone.gemfire.StatisticDescriptor;

Locator.java (https://gitlab.com/kidaa/incubator-geode.git) Java · 543 lines

10 import java.io.File;

11 import java.io.IOException;

12 import java.net.InetAddress;

13 import java.util.*;

14 import java.util.concurrent.ConcurrentMap;

InetAddressAndPortTest.java (https://github.com/apache/cassandra.git) Java · 182 lines

19 package org.apache.cassandra.locator;

20

21 import java.net.InetAddress;

22 import java.net.UnknownHostException;

23

FileSender.java (http://kouchat.googlecode.com/svn/) Java · 415 lines

26 import java.io.IOException;

27 import java.io.OutputStream;

28 import java.net.InetAddress;

29 import java.net.Socket;

30 import java.net.UnknownHostException;

IoNetworkTransport.java (git://pkgs.fedoraproject.org/qpid-cpp) Java · 278 lines

22

23 import java.io.IOException;

24 import java.net.InetAddress;

25 import java.net.InetSocketAddress;

26 import java.net.ServerSocket;

Serializer.java (git://github.com/lwes/lwes-java.git) Java · 916 lines

15 import java.math.BigInteger;

16 import java.net.Inet4Address;

17 import java.net.InetAddress;

18 import java.util.ArrayList;

19 import java.util.BitSet;

Deserializer.java (git://github.com/lwes/lwes-java.git) Java · 791 lines

15 import java.math.BigInteger;

16 import java.net.Inet4Address;

17 import java.net.InetAddress;

18 import java.net.UnknownHostException;

19 import java.util.BitSet;

AbstractTLSSocketFactory.java (http://vt-middleware.googlecode.com/svn/) Java · 330 lines

15

16 import java.io.IOException;

17 import java.net.InetAddress;

18 import java.net.Socket;

19 import java.security.GeneralSecurityException;

DefaultConnectionSpec.java (git://github.com/alphazero/jredis.git) Java · 233 lines

11 import static org.jredis.connector.Connection.Socket.Property.SO_SNDBUF;

12 import static org.jredis.connector.Connection.Socket.Property.SO_TIMEOUT;

13 import java.net.InetAddress;

14 import java.net.UnknownHostException;

15 import org.jredis.ClientRuntimeException;

InboundConnectionSettings.java (https://github.com/apache/cassandra.git) Java · 213 lines

19 package org.apache.cassandra.net;

20

21 import java.net.InetAddress;

22 import java.util.function.Function;

23

Main.java (git://github.com/craigwblake/redline.git) Java · 123 lines

7 import java.io.File;

8 import java.io.IOException;

9 import java.net.InetAddress;

10 import java.security.NoSuchAlgorithmException;

11 import org.xml.sax.SAXException;

StaticIpConfigurationTest.java (git://github.com/android/platform_frameworks_base.git) Java · 226 lines

23 import android.os.Parcel;

24

25 import java.net.InetAddress;

26 import java.util.HashSet;

27

CqlOperationResultImpl.java (git://github.com/Netflix/astyanax.git) Java · 108 lines

16 package com.netflix.astyanax.cql;

17

18 import java.net.InetAddress;

19 import java.util.concurrent.TimeUnit;

20

MessagingServices.java (git://github.com/gradle/gradle.git) Java · 195 lines

32 import org.slf4j.LoggerFactory;

33

34 import java.net.InetAddress;

35 import java.net.UnknownHostException;

36 import java.util.UUID;

DiscoveryNodeFiltersTests.java (git://github.com/elasticsearch/elasticsearch.git) Java · 261 lines

28 import org.junit.BeforeClass;

29

30 import java.net.InetAddress;

31 import java.net.UnknownHostException;

32 import java.util.ArrayList;

TrapReceiver.java (http://mobicents.googlecode.com/svn/trunk/) Java · 161 lines ✨ Summary

This Java code implements an SNMP trap receiver engine, responsible for receiving and logging information about incoming SNMP traps from remote devices. It handles both SNMPv2 and v1 traps, extracting relevant data such as agent address, community string, and variable bindings. The received data is logged using a logger, providing a record of the trap’s contents and any associated errors.

This Java code implements an SNMP trap receiver engine, responsible for receiving and logging information about incoming SNMP traps from remote devices. It handles both SNMPv2 and v1 traps, extracting relevant data such as agent address, community string, and variable bindings. The received data is logged using a logger, providing a record of the trap’s contents and any associated errors.

20 package org.jboss.jmx.adaptor.snmp.trapd;

21

22 import java.net.InetAddress;

23

24 import org.jboss.logging.Logger;

Remote.java (http://textmash.googlecode.com/svn/trunk/) Java · 223 lines

25 import java.io.IOException;

26 import java.io.OutputStream;

27 import java.net.InetAddress;

28 import java.net.ServerSocket;

29 import java.net.Socket;

ServletTester.java (git://pkgs.fedoraproject.org/jetty) Java · 375 lines

14 package org.eclipse.jetty.testing;

15

16 import java.net.InetAddress;

17 import java.util.EnumSet;

18 import java.util.Enumeration;

RegistryTest.java (https://github.com/apache/harmony-classlib.git) Java · 257 lines

22 package org.apache.harmony.rmi;

23

24 import java.net.InetAddress;

25

26 import java.rmi.Naming;

SocketTstFactory.java (https://github.com/apache/activemq.git) Java · 179 lines

18

19 import java.io.IOException;

20 import java.net.InetAddress;

21 import java.net.Socket;

22 import java.net.UnknownHostException;

PacScriptMethodsTest.java (http://proxy-vole.googlecode.com/svn/trunk/) Java · 176 lines

4

5 import java.net.Inet4Address;

6 import java.net.InetAddress;

7 import java.net.UnknownHostException;

8 import java.util.Calendar;

ConnectionValidator.java (http://wastelanders.googlecode.com/svn/trunk/) Java · 217 lines

17 import marauroa.server.game.db.DAORegister;

18

19 import java.net.InetAddress;

20 import java.net.Socket;

21 import java.nio.channels.SocketChannel;

SocketServer.java (http://gralej.googlecode.com/svn/trunk/) Java · 239 lines

6 import java.io.BufferedInputStream;

7 import java.io.IOException;

8 import java.net.InetAddress;

9 import java.net.ServerSocket;

10 import java.net.Socket;

DatagramSocketEventEmitter.java (git://github.com/lwes/lwes-java.git) Java · 283 lines

24 import java.net.DatagramPacket;

25 import java.net.DatagramSocket;

26 import java.net.InetAddress;

27

28 /**

StoreBasedDhcpService.java (https://github.com/apache/directory-server.git) Java · 310 lines

21

22

23 import java.net.InetAddress;

24 import java.net.InetSocketAddress;

25

MRWebAppUtil.java (git://github.com/apache/hadoop-common.git) Java · 174 lines

32 import org.apache.hadoop.yarn.ipc.RPCUtil;

33

34 import java.net.InetAddress;

35 import java.net.InetSocketAddress;

36 import java.net.UnknownHostException;

PrintPeers.java (https://code.google.com/p/bitcoinj/) Java · 112 lines

29 import com.google.common.util.concurrent.ListenableFuture;

30

31 import java.net.InetAddress;

32 import java.net.InetSocketAddress;

33 import java.util.ArrayList;

ContinuousTcpClient.java (https://bitbucket.org/spa-smartpay/android-castle-btprotocol.git) Java · 350 lines

13 import java.io.InputStreamReader;

14 import java.io.OutputStreamWriter;

15 import java.net.InetAddress;

16 import java.net.InetSocketAddress;

17 import java.net.ServerSocket;

NetworkUtils.java (http://kouchat.googlecode.com/svn/) Java · 305 lines

23

24 import java.net.Inet4Address;

25 import java.net.InetAddress;

26 import java.net.NetworkInterface;

27 import java.net.SocketException;

CPoolProxy.java (git://github.com/mozilla-services/android-sync.git) Java · 245 lines

28

29 import java.io.IOException;

30 import java.net.InetAddress;

31 import java.net.Socket;

32

ConnectionHandler.java (git://pkgs.fedoraproject.org/RabbIT) Java · 315 lines

2

3 import java.io.IOException;

4 import java.net.InetAddress;

5 import java.net.MalformedURLException;

6 import java.net.URL;

ConcurrentUpdateSolrClientBuilderTest.java (git://github.com/apache/lucene-solr.git) Java · 71 lines

19

20 import java.io.IOException;

21 import java.net.InetAddress;

22 import java.net.ServerSocket;

23 import java.net.SocketTimeoutException;

Server.java (git://github.com/playframework/play.git) Java · 177 lines

3 import java.io.File;

4 import java.lang.management.ManagementFactory;

5 import java.net.InetAddress;

6 import java.net.InetSocketAddress;

7 import java.util.Properties;

TestServiceAuthorization.java (git://github.com/apache/hadoop-common.git) Java · 184 lines

21 import static org.junit.Assert.fail;

22

23 import java.net.InetAddress;

24 import java.net.UnknownHostException;

25

IPConfig.java (http://u3j-aion-beta.googlecode.com/svn/trunk/) Java · 125 lines

17

18 import java.io.File;

19 import java.net.InetAddress;

20 import java.net.UnknownHostException;

21 import java.util.ArrayList;

ArquillianConnector.java (git://github.com/liferay/liferay-portal.git) Java · 89 lines

17 import java.io.IOException;

18

19 import java.net.InetAddress;

20

21 import java.util.Map;

OperatingSystemNetworkInfo.java (http://kouchat.googlecode.com/svn/) Java · 165 lines

22 package net.usikkert.kouchat.net;

23

24 import java.net.InetAddress;

25 import java.net.NetworkInterface;

26 import java.net.SocketException;

MMOConnection.java (http://l2emu.googlecode.com/svn/trunk/) Java · 309 lines

15 package net.l2emuproject.network.mmocore;

16

17 import java.net.InetAddress;

18 import java.net.Socket;

19 import java.net.UnknownHostException;

JUnitClientImpl.kt (git://github.com/JetBrains/intellij-community.git) Kotlin · 153 lines

22 import java.io.ObjectInputStream

23 import java.io.ObjectOutputStream

24 import java.net.InetAddress

25 import java.net.InetSocketAddress

26 import java.net.Socket

LoggingSocket.java (git://github.com/willuhn/hbci4java.git) Java · 380 lines

25 import java.io.InputStream;

26 import java.io.OutputStream;

27 import java.net.InetAddress;

28 import java.net.Socket;

29 import java.net.SocketAddress;

MulticastReceiver.java (http://ops.googlecode.com/svn/trunk/) Java · 149 lines

24 import java.net.DatagramPacket;

25 import java.net.Inet4Address;

26 import java.net.InetAddress;

27 import java.net.InetSocketAddress;

28 import java.net.MulticastSocket;

WhitelistBasedTrustedChannelResolver.java (git://github.com/apache/hadoop-common.git) Java · 119 lines

18 package org.apache.hadoop.hdfs.protocol.datatransfer;

19

20 import java.net.InetAddress;

21 import java.net.UnknownHostException;

22

GroupReceiver.java (http://textmash.googlecode.com/svn/trunk/) Java · 154 lines

22 import java.io.InputStream;

23 import java.net.DatagramPacket;

24 import java.net.InetAddress;

25 import java.net.InetSocketAddress;

26 import java.net.MulticastSocket;

NtpITest.java (https://github.com/apache/directory-server.git) Java · 108 lines

23 import static org.junit.Assert.assertTrue;

24

25 import java.net.InetAddress;

26 import java.util.concurrent.Executors;

27

TFTPPacket.java (git://pkgs.fedoraproject.org/apache-commons-net) Java · 248 lines

19

20 import java.net.DatagramPacket;

21 import java.net.InetAddress;

22

23 /***

SocksSocketTest.java (https://bitbucket.org/openesb/openesb-components.git) Java · 631 lines

32

33 import java.io.InputStream;

34 import java.net.InetAddress;

35 import java.net.Socket;

36 import java.net.SocketImplFactory;

DatagramSocketClient.java (https://bitbucket.org/openesb/openesb-components.git) Java · 273 lines

17

18 import java.net.DatagramSocket;

19 import java.net.InetAddress;

20 import java.net.SocketException;

21

NetUtils.java (http://h2database.googlecode.com/svn/trunk/) Java · 282 lines ✨ Summary

This Java class provides utility functions for working with sockets, including creating loopback and client sockets, server sockets, and checking if a socket is connected to a local address. It also handles exceptions and caching of certain values for performance. The class is designed to be used in a database context, likely H2 Database.

10 import java.net.BindException;

11 import java.net.Inet6Address;

12 import java.net.InetAddress;

13 import java.net.InetSocketAddress;

14 import java.net.ServerSocket;

MessageOut.java (git://github.com/apache/cassandra.git) Java · 154 lines

21 import java.io.DataOutputStream;

22 import java.io.IOException;

23 import java.net.InetAddress;

24 import java.util.Collections;

25 import java.util.Map;

IPExpression.java (http://metastudio.googlecode.com/svn/trunk/) Java · 284 lines

7 package org.meta.net;

8

9 import java.net.InetAddress;

10 import java.util.ArrayList;

11 import java.util.Iterator;

MessagePayload.java (http://jsendnsca.googlecode.com/svn/trunk/) Java · 257 lines

21

22 import java.io.Serializable;

23 import java.net.InetAddress;

24 import java.net.UnknownHostException;

25

MulticastOutputStream.java (http://dataturbine.googlecode.com/svn/trunk/) Java · 257 lines

37

38 import java.net.DatagramSocket;

39 import java.net.InetAddress;

40 import java.net.MulticastSocket;

41 import java.net.SocketException;

PooledBatchManager.java (https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx) Java · 289 lines

22 import java.io.FileOutputStream;

23 import java.io.FileFilter;

24 import java.net.InetAddress;

25 import java.util.List;

26

SMTPService.java (http://subetha.googlecode.com/svn/trunk/) Java · 198 lines

6

7 import java.io.IOException;

8 import java.net.InetAddress;

9 import java.net.UnknownHostException;

10

TestInetAddressPoint.java (git://github.com/apache/lucene-solr.git) Java · 177 lines

17 package org.apache.lucene.document;

18

19 import java.net.InetAddress;

20

21 import org.apache.lucene.index.IndexReader;

SocketEndPoint.java (git://pkgs.fedoraproject.org/jetty) Java · 282 lines

15

16 import java.io.IOException;

17 import java.net.InetAddress;

18 import java.net.InetSocketAddress;

19 import java.net.Socket;

EasySSLProtocolSocketFactory.java (https://bitbucket.org/atlassian/connector-commons) Java · 318 lines ✨ Summary

This Java code implements a custom socket factory for creating secure connections using SSL/TLS encryption. It provides methods for creating sockets with various parameters, including host and port, connection timeouts, and automatic close. The class uses a custom trust manager to handle certificate validation and ensures secure communication over the network.

46 import java.io.FileNotFoundException;

47 import java.io.IOException;

48 import java.net.InetAddress;

49 import java.net.InetSocketAddress;

50 import java.net.Socket;

220

221 /**

222 * @see SecureProtocolSocketFactory#createSocket(java.lang.String,int,java.net.InetAddress,int)

223 */

224 public Socket createSocket(

SSLSocketFactory.cs (git://github.com/koush/androidmono.git) C# · 133 lines

91 }

92 internal static global::MonoJavaBridge.MethodId _createSocket16049;

93 public override global::java.net.Socket createSocket(java.lang.String arg0, int arg1, java.net.InetAddress arg2, int arg3)

94 {

95 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

100 }

101 internal static global::MonoJavaBridge.MethodId _createSocket16050;

102 public override global::java.net.Socket createSocket(java.net.InetAddress arg0, int arg1)

103 {

104 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

109 }

110 internal static global::MonoJavaBridge.MethodId _createSocket16051;

111 public override global::java.net.Socket createSocket(java.net.InetAddress arg0, int arg1, java.net.InetAddress arg2, int arg3)

112 {

113 global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;

WebappListener.java (git://pkgs.fedoraproject.org/opengrok) Java · 88 lines

26 import java.io.File;

27 import java.io.IOException;

28 import java.net.InetAddress;

29 import java.net.InetSocketAddress;

30 import java.net.SocketAddress;

NioClient.java (http://coder-fragment.googlecode.com/svn/trunk/) Java · 242 lines

10 import java.io.OutputStream;

11 import java.io.OutputStreamWriter;

12 import java.net.InetAddress;

13 import java.net.InetSocketAddress;

14 import java.net.UnknownHostException;

BotlistUniqueId.java (http://ainotebook.googlecode.com/svn/trunk/) Java · 104 lines

41 package org.bresearch.websec.utils.botlist;

42

43 import java.net.InetAddress;

44 import java.net.UnknownHostException;

45 import java.security.MessageDigest;

Message.java (http://wastelanders.googlecode.com/svn/trunk/) Java · 268 lines

19

20 import java.io.IOException;

21 import java.net.InetAddress;

22 import java.net.Socket;

23 import java.nio.channels.SocketChannel;

AdministrationServiceImpl.java (https://bitbucket.org/jwesonga/androidopenmrs) Java · 993 lines

15

16 import java.io.UnsupportedEncodingException;

17 import java.net.InetAddress;

18 import java.net.UnknownHostException;

19 import java.util.ArrayList;

WakeUpComputerTask.java (http://androbuntu.googlecode.com/svn/trunk/) Java · 119 lines

3 import java.net.DatagramPacket;

4 import java.net.DatagramSocket;

5 import java.net.InetAddress;

6 import java.net.UnknownHostException;

7

RtspServerStackImpl.java (http://mobicents.googlecode.com/svn/trunk/) Java · 161 lines ✨ Summary

This Java code implements a basic RTSP (Real-Time Streaming Protocol) server using Netty framework. It creates a server that listens for incoming connections, processes HTTP requests and responses, and notifies an external listener of any events. The server can be started and stopped, and it uses multiple threads to handle incoming requests concurrently.

18 package org.mobicents.media.server.ctrl.rtsp.stack;

19

20 import java.net.InetAddress;

21 import java.net.InetSocketAddress;

22 import java.net.UnknownHostException;

IPPacket.java (http://ids-with-prolog.googlecode.com/svn/trunk/) Java · 290 lines

3 import java.net.Inet4Address;

4 import java.net.Inet6Address;

5 import java.net.InetAddress;

6 import java.net.UnknownHostException;

7

AddressMemcachedSessionComparatorUnitTest.java (git://github.com/killme2008/xmemcached.git) Java · 280 lines

1 package net.rubyeye.xmemcached.test.unittest.impl;

2

3 import java.net.InetAddress;

4 import java.net.InetSocketAddress;

5 import java.net.UnknownHostException;

NetworkInterfaceRuntimeHandler.java (git://github.com/jbossas/jboss-as.git) Java · 81 lines

23 package org.jboss.as.server.services.net;

24

25 import java.net.InetAddress;

26

27 import org.jboss.as.controller.OperationContext;

NativeDatagramPacketArray.java (git://github.com/netty/netty.git) Java · 178 lines

24

25 import java.net.Inet6Address;

26 import java.net.InetAddress;

27 import java.net.InetSocketAddress;

28 import java.net.UnknownHostException;

NioNetwork.java (git://github.com/JPaxos/JPaxos.git) Java · 199 lines

4

5 import java.io.IOException;

6 import java.net.InetAddress;

7 import java.net.InetSocketAddress;

8 import java.net.SocketException;

NoClientBindProtocolSocketFactory.java (git://github.com/kohsuke/hudson.git) Java · 126 lines

25

26 import java.io.IOException;

27 import java.net.InetAddress;

28 import java.net.InetSocketAddress;

29 import java.net.Socket;

MachineList.java (git://github.com/apache/hadoop-common.git) Java · 210 lines

18 package org.apache.hadoop.util;

19

20 import java.net.InetAddress;

21

22 import java.net.UnknownHostException;

X10ServerSocketObjectPool.java (http://taiyaki.googlecode.com/svn/trunk/) Java · 197 lines

24 import java.io.InputStream;

25 import java.io.OutputStream;

26 import java.net.InetAddress;

27 import java.net.Socket;

28 import java.net.UnknownHostException;

TestHttpHost.java (https://github.com/apache/httpcore.git) Java · 240 lines

32 import java.io.ObjectInputStream;

33 import java.io.ObjectOutputStream;

34 import java.net.InetAddress;

35 import java.net.URI;

36 import java.net.URISyntaxException;

StandardSocketFactory.java (http://tesis-matlab-estanques.googlecode.com/svn/trunk/) Java · 208 lines

29 import java.lang.reflect.Method;

30

31 import java.net.InetAddress;

32 import java.net.Socket;

33 import java.net.SocketException;

RtpStreamReceiver.java (git://github.com/bigbluebutton/bigbluebutton.git) Java · 174 lines

27

28 import java.io.*;

29 import java.net.InetAddress;

30 import java.net.DatagramSocket;

31

UrlServiceImpl.scala (http://oseeatwhu.googlecode.com/svn/trunk/) Scala · 252 lines

159

160 if(isValidHost(strHost)){

161 val inetAddr = java.net.InetAddress.getByName(strHost).getHostAddress

162 inetAddr

163 }else{

Client.java (http://ift-585.googlecode.com/svn/trunk/) Java · 143 lines

5 import java.net.DatagramPacket;

6 import java.net.DatagramSocket;

7 import java.net.InetAddress;

8 import java.net.SocketException;

9 import java.net.SocketTimeoutException;

NioServer.java (http://offsync.googlecode.com/svn/trunk/) Java · 210 lines

2

3 import java.io.IOException;

4 import java.net.InetAddress;

5 import java.net.InetSocketAddress;

6 import java.nio.ByteBuffer;

SocksSocket.java (https://code.google.com/p/sshtunnel/) Java · 339 lines

4 import java.io.InputStream;

5 import java.io.OutputStream;

6 import java.net.InetAddress;

7 import java.net.Socket;

8 import java.net.SocketException;

Netlog.java (http://arronwork.googlecode.com/svn/trunk/) Java · 209 lines

7 import java.net.DatagramSocket;

8 import java.net.DatagramPacket;

9 import java.net.InetAddress;

10 import java.net.SocketTimeoutException;

11

ThriftServer.java (git://github.com/apache/cassandra.git) Java · 121 lines

18 package org.apache.cassandra.thrift;

19

20 import java.net.InetAddress;

21 import java.net.InetSocketAddress;

22

RemoteAddressFilter.java (http://google-enterprise-connector-manager.googlecode.com/svn/trunk/) Java · 140 lines ✨ Summary

This Java class, RemoteAddressFilter, is a singleton that restricts access to servlets based on the caller’s IP address. It determines whether an incoming request is allowed to proceed by checking if the caller’s IP address matches specific patterns (e.g., localhost, GSA host). The filter can be used in conjunction with other filters or valves to control access to servlets.

17 import com.google.enterprise.connector.manager.Context;

18

19 import java.net.InetAddress;

20 import java.net.UnknownHostException;

21 import java.util.Properties;

RuntimeVariables.java (git://github.com/liferay/liferay-portal.git) Java · 234 lines

15 package com.liferay.poshi.runner.util;

16

17 import java.net.InetAddress;

18

19 import java.util.ArrayList;