use of org.neo4j.helpers.HostnamePort in project neo4j by neo4j.
the class BoltIT method assertEventuallyServerResponds.
private void assertEventuallyServerResponds(String host, int port) throws Exception {
SecureSocketConnection conn = new SecureSocketConnection();
conn.connect(new HostnamePort(host, port));
conn.send(new byte[] { (byte) 0x60, (byte) 0x60, (byte) 0xB0, (byte) 0x17, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 });
assertThat(conn.recv(4), equalTo(new byte[] { 0, 0, 0, 1 }));
}
Aggregations