Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
//this snippet just opens a server and stops it from closing.
#include "nn.hpp"
#include <iostream>
int main(){
std::string msg;
runServer(9090,"PassTest");


//this part stops it from reaching the "return 0" line.
//the timer is so it does not eat up CPU power
int main(){
runServer(9090, "PassTest");
// this part stops it from reaching the "return 0" line.
// the timer is so it does not eat up CPU power
while(true){
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
Expand Down
Loading
Loading