mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Combine server and client into a single program
This commit is contained in:
@@ -36,6 +36,7 @@ int CreateConnection(PeerPtr *peer_ptr, const char *transmission_id,
|
||||
|
||||
peer_ptr->peer_connection->Create(peer_ptr->pc_params, transmission_id,
|
||||
user_id);
|
||||
LOG_INFO("CreateConnection");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -46,11 +47,13 @@ int JoinConnection(PeerPtr *peer_ptr, const char *transmission_id,
|
||||
|
||||
peer_ptr->peer_connection->Join(peer_ptr->pc_params, transmission_id,
|
||||
user_id);
|
||||
LOG_INFO("JoinConnection");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int LeaveConnection(PeerPtr *peer_ptr) {
|
||||
peer_ptr->peer_connection->Leave();
|
||||
LOG_INFO("LeaveConnection");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user