Skip to content

Commit a8f3d62

Browse files
committed
implemented an example of a first contact behaviour, see DiscoverPeerAndStartEGChat in test/mock folder
1 parent 75d198b commit a8f3d62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/net/sharksystem/asap/mockAndTemplates/DiscoverPeerAndStartEGChat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* New connection(s) could have been established or connection(s)) are dropped.
2626
*
2727
* For what could such an information be good for?
28-
* * We could initiate a game, a chat, ask to come in a get a special discount for our brand new coffee brand
28+
* We could initiate a game, a chat, ask to come in a get a special discount for our brand new coffee brand
2929
* (location based / point of sales advertisement) etc. pp.
3030
*
3131
* Interesting question: Should we send a message only to this peer with ASAP?
@@ -216,13 +216,13 @@ public void mockVariant() {
216216

217217
@Test
218218
public void realASAPVariant() throws IOException, ASAPException, InterruptedException {
219-
// create two peer - here as peer mock.
219+
// create two peer - here with real ASAP.
220220
ASAPSimplePeerFS alicePeer = new ASAPSimplePeerFS(ALICE);
221221
ASAPSimplePeerFS bobPeer = new ASAPSimplePeerFS(BOB);
222222

223223
this.recognizePeerInNeighbourhood(alicePeer, bobPeer);
224224

225-
// simulate an encounter
225+
// trigger a real asap encounter - that's no mock, it's the real asap engine / protocol stack using TCP/IP.
226226
alicePeer.startEncounter(7777, bobPeer);
227227

228228
Thread.sleep(1000);

0 commit comments

Comments
 (0)