From 6a2e8fdfe368a14d24ad3b6badd8f8022352332c Mon Sep 17 00:00:00 2001 From: Rob Austin Date: Mon, 20 Oct 2014 19:53:11 +0100 Subject: [PATCH] HCOLL-167 readme --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2b6bfb339..784899367 100644 --- a/README.md +++ b/README.md @@ -657,15 +657,14 @@ serverMap.close(); statelessMap.close(); ``` -This example above, creates a Chronicle Map state-full instance which has to be running Tcp -Replication, the server TCP/IP port is defined like this : +The example above, creates a Chronicle Map state-full instance which has to be running Tcp +Replication, the server TCP/IP port is defined using the TcpReplicationConfig : ``` java .replicators((byte) 2, TcpReplicationConfig.of(8076)) // sets the server to run on localhost:8076 ``` -On the "stateless client" we connect to the server via TCP/IP on localhost:8076, - this is done via this method : +On the "stateless client" we connect to the server via TCP/IP on localhost:8076 : ``` java .stateless(remoteAddress(new InetSocketAddress("localhost", 8076)))