Code examples for InetSocketAddress

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
58:	InetSocketAddress socketAddress = new InetSocketAddress(ipAddress.getIpAddress(), ipAddress.getPort()); 
-
61:	name = String.format("%s:%s", socketAddress.getHostString(), socketAddress.getPort()); 
-
63:	node = new AddressableNode(address, name, socketAddress); 
Full Snippet Info
9
CodeRank
40:	new InetSocketAddress("127.0.0.1", 12345); 
41:	udp.tell(UdpConnectedMessage.connect(handler, remoteAddr), getSelf()); 
-
49:	udp.tell(UdpConnectedMessage.connect(handler, remoteAddr, localAddr, options), getSelf()); 
Full Snippet Info
8
CodeRank
71:	InetSocketAddress addr = new InetSocketAddress(0); 
72:	System.err.println(addr.getHostName() + addr.getPort()); 
-
77:	server = 
Full Snippet Info
8
CodeRank
49:	this(new InetSocketAddress(hostname, port)); 
Full Snippet Info
8
CodeRank
130:	SocketAddress socketAddress = new InetSocketAddress(localhost, 1); 
-
134:	when(this.factory.createDatagramSocket("test", socketAddress)).thenReturn(socket3); 
-
139:	DatagramSocket result3 = this.subject.createDatagramSocket("test", socketAddress); 
Full Snippet Info
8
CodeRank
83:	this( new InetSocketAddress( addr , defaultPort() ) ); 
-
100:	_host = addr.getHostName(); 
101:	_port = addr.getPort(); 
Full Snippet Info
8
CodeRank
77:	InetSocketAddress addr = new InetSocketAddress(0); 
78:	System.err.println(addr.getHostName() + addr.getPort()); 
-
83:	server = 
Full Snippet Info
8
CodeRank
37:	return node.getSocketAddress().getAddress().getHostAddress().equals(this.address.getAddress().getHostAddress()) && (node.getSocketAddress().getPort() == this.address.getPort()); 
Full Snippet Info
8
CodeRank
81:	_factory = new NIOServerCnxn.Factory(new InetSocketAddress(port)); 
Full Snippet Info
7
CodeRank
44:	TcpMessage.bind(getSelf(), new InetSocketAddress("localhost", 0), 100), 
Full Snippet Info
8
CodeRank
89:	.setHostname(addr.getHostName()) 
90:	.setPort(addr.getPort()) 
Full Snippet Info
8
CodeRank
72:	socketAddress = new InetSocketAddress(inetAddress,8000); 
73:	Assert.assertEquals("[::1]:8000", NetworkUtils.formatAddress(socketAddress)); 
Full Snippet Info
7
CodeRank
106:	socket.bind(new InetSocketAddress(host, bindPort)); 
Full Snippet Info
7
CodeRank
60:	NIOServerCnxnFactory.createFactory(new InetSocketAddress(this.port), this.maxConnections); 
Full Snippet Info
7
CodeRank
90:	configuration.setBindAddress(new InetSocketAddress("127.0.0.1", PORT)); 
Full Snippet Info
7
CodeRank
25:	InetAddress addr = value.getAddress(); 
26:	String str = addr == null ? value.getHostName() : addr.toString().trim(); 
-
39:	jgen.writeString(str + ":" + value.getPort()); 
-
48:	typeSer.writeTypeSuffixForScalar(value, jgen); 
Full Snippet Info
7
CodeRank
109:	return HostAndPort.fromParts(address.getHostString(), address.getPort()); 
Full Snippet Info
5
CodeRank
67:	"mongodb.seeds", queryRunner.getAddress().getHostString() + ":" + queryRunner.getAddress().getPort(), 
Full Snippet Info
5
CodeRank
50:	seed = String.format("%s:%d", address.getHostString(), address.getPort()); 
Full Snippet Info
5
CodeRank
57:	cnxnFactory = NIOServerCnxnFactory.createFactory(new InetSocketAddress(port), 0); 
Full Snippet Info
5
CodeRank