Skip to content

Commit

Permalink
socktest
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Apr 4, 2024
1 parent d1fcd83 commit 3f216b3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/dpp/dpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <dpp/misc-enum.h>
#include <dpp/stringops.h>
#include <dpp/managed.h>
#include <dpp/socketengine.h>
#include <dpp/utility.h>
#include <dpp/voicestate.h>
#include <dpp/permissions.h>
Expand Down
34 changes: 34 additions & 0 deletions src/sockettest/socket.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/************************************************************************************
*
* D++, A Lightweight C++ library for Discord
*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2021 Craig Edwards and D++ contributors
* (https://github.com/brainboxdotcc/DPP/graphs/contributors)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
************************************************************************************/

#include <dpp/dpp.h>
#include <iostream>
#include <thread>
#include <chrono>

int main() {
auto se = create_socket_engine();
do {
se->process_events();
std::cout << "Loop...\n";
} while (true);
}

0 comments on commit 3f216b3

Please sign in to comment.