You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in using this because it appears to be quite easy enough to use and it has the important focus on game itself with UDP. But it's missing some crucial informations.
No information for Connect() or to Generate connectToken. And Unexplained missing privateKey and serverAddresses
I noticed the InsecureConnect and the Connect so I figured that the Connect is the encrypted variant of connection. However I found myself confused by the different set of parameters. No private key or server Address in Connect(). There is no information provided for any of these thing. Yet I tried to do it anyway and it simply crashed. So I have no guidance whatsoever on how to get Connect() to work. Not even AI knows what to do here.
Unexplained feature creep
There is also some confusion of features. In test.cpp there are CreateClients() and ConnectClients() for example. But in other .cpp it doesn't use those and it seems like a complete program I can use. There is no explanation for these things.
However, I do see it being used inside InsecureConnect() and Connect(). So what is the point here?
No generate for privateKey
privateKey is set to all zeros for some reason. It is not explained what it's for. There is never an example of it being generated. And if I were to generate it, I don't have a clues where to start.
No explanation for loopback
loopback is not explained at all. I have no clue what it's for.
Suggestion:
Please give each functions a comment descriptions for each parameters that needs to be explained.
Provide suggestion of what functions to use if a function requires it.
Explain how Secure connect is used.
CMake
Now when it comes to CMake this is the only thing I can use.
I made mine work by doing this.
includes all necessary files
include_directories(${PROJECT_NAME} PUBLIC "include/")
include_directories(${PROJECT_NAME} PUBLIC "sodium/")
include_directories(${PROJECT_NAME} PUBLIC "tlsf/")
include_directories(${PROJECT_NAME} PUBLIC "netcode/")
include_directories(${PROJECT_NAME} PUBLIC "reliable/")
include_directories(${PROJECT_NAME} PUBLIC "serialize/")
NOTE: I am using MinGW so that's where the mingw32 comes from.
Every CPP file works except for test.cpp It has undefined functions that I'm unable to find.
The text was updated successfully, but these errors were encountered:
I'm interested in using this because it appears to be quite easy enough to use and it has the important focus on game itself with UDP. But it's missing some crucial informations.
No information for Connect() or to Generate connectToken. And Unexplained missing privateKey and serverAddresses
I noticed the InsecureConnect and the Connect so I figured that the Connect is the encrypted variant of connection. However I found myself confused by the different set of parameters. No private key or server Address in Connect(). There is no information provided for any of these thing. Yet I tried to do it anyway and it simply crashed. So I have no guidance whatsoever on how to get Connect() to work. Not even AI knows what to do here.
Unexplained feature creep
There is also some confusion of features. In test.cpp there are CreateClients() and ConnectClients() for example. But in other .cpp it doesn't use those and it seems like a complete program I can use. There is no explanation for these things.
However, I do see it being used inside InsecureConnect() and Connect(). So what is the point here?
No generate for privateKey
privateKey is set to all zeros for some reason. It is not explained what it's for. There is never an example of it being generated. And if I were to generate it, I don't have a clues where to start.
No explanation for loopback
loopback is not explained at all. I have no clue what it's for.
Suggestion:
CMake
Now when it comes to CMake this is the only thing I can use.
I made mine work by doing this.
includes all necessary files
include_directories(${PROJECT_NAME} PUBLIC "include/")
include_directories(${PROJECT_NAME} PUBLIC "sodium/")
include_directories(${PROJECT_NAME} PUBLIC "tlsf/")
include_directories(${PROJECT_NAME} PUBLIC "netcode/")
include_directories(${PROJECT_NAME} PUBLIC "reliable/")
include_directories(${PROJECT_NAME} PUBLIC "serialize/")
get all cpp-files
file(GLOB_RECURSE SRC_FILES
source/.cpp
sodium/.c
netcode/netcode.c
reliable/reliable.c
tlsf/tlsf.c
CMAKE_CONFIGURE_DEPENDS)
project(Network VERSION 0.0.1)
add_executable(${PROJECT_NAME} ${SRC_FILES} client.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE mingw32 wsock32 ws2_32 sodium qwave)
project(Network_server VERSION 0.0.1)
add_executable(${PROJECT_NAME} ${SRC_FILES} server.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE mingw32 wsock32 ws2_32 sodium qwave)
NOTE: I am using MinGW so that's where the mingw32 comes from.
Every CPP file works except for test.cpp It has undefined functions that I'm unable to find.
The text was updated successfully, but these errors were encountered: