mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 23:25:33 +00:00
Rename peers
This commit is contained in:
@ -25,12 +25,12 @@ set(TESTS_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test/main.cpp
|
||||
)
|
||||
|
||||
set(TESTS_PEER_1_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test/p2p/peer-1.cpp
|
||||
set(TESTS_OFFERER_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test/p2p/offerer.cpp
|
||||
)
|
||||
|
||||
set(TESTS_PEER_2_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test/p2p/peer-2.cpp
|
||||
set(TESTS_ANSWERER_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test/p2p/answerer.cpp
|
||||
)
|
||||
|
||||
# Hack because usrsctp uses CMAKE_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR
|
||||
@ -115,18 +115,18 @@ set_target_properties(tests PROPERTIES
|
||||
|
||||
target_link_libraries(tests datachannel)
|
||||
|
||||
# P2P Test: Peer-1
|
||||
add_executable(peer-1 ${TESTS_PEER_1_SOURCES})
|
||||
set_target_properties(peer-1 PROPERTIES
|
||||
# P2P Test: offerer
|
||||
add_executable(offerer ${TESTS_OFFERER_SOURCES})
|
||||
set_target_properties(offerer PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
CXX_STANDARD 17)
|
||||
|
||||
target_link_libraries(peer-1 datachannel)
|
||||
target_link_libraries(offerer datachannel)
|
||||
|
||||
# P2P Test: Peer-2
|
||||
add_executable(peer-2 ${TESTS_PEER_2_SOURCES})
|
||||
set_target_properties(peer-2 PROPERTIES
|
||||
# P2P Test: answerer
|
||||
add_executable(answerer ${TESTS_ANSWERER_SOURCES})
|
||||
set_target_properties(answerer PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
CXX_STANDARD 17)
|
||||
|
||||
target_link_libraries(peer-2 datachannel)
|
||||
target_link_libraries(answerer datachannel)
|
||||
|
@ -1,9 +1,9 @@
|
||||
* Execute ```peer-1``` app in console
|
||||
* Execute ```peer-2``` app in another console
|
||||
* Copy "Local Description" from ```peer-1```
|
||||
* Enter 1 to ```peer-2```
|
||||
* Execute ```offerer``` app in console
|
||||
* Execute ```answerer``` app in another console
|
||||
* Copy "Local Description" from ```offerer```
|
||||
* Enter 1 to ```answerer```
|
||||
* Paste copied description, press enter
|
||||
* Redo same procedure for ```peer-2```
|
||||
* Redo same procedure for ```answerer```
|
||||
* Redo same procedure for candidates
|
||||
* Wait for "DataChannel open" message
|
||||
* Send message from one peer to another
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright (c) 2019 Paul-Louis Ageneau
|
||||
* Copyright (c) 2019 Paul-Louis Ageneau, Murat Dogan
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright (c) 2019 Paul-Louis Ageneau
|
||||
* Copyright (c) 2019 Paul-Louis Ageneau, Murat Dogan
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
Reference in New Issue
Block a user