I am trying to use the networking modules in Chap 16, but can not locate some .h files like journal.h, packets.h. I am using vc6. Can anyone give me some advise?, thanks.
Network Programming
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
I just searched all source in the GameCode.exe, but did not see where is it requiring journal.h or packets.h.
Are you using the zipped source from this website? Which file is the vc6 compiler complaining on? -
GNU C libary has some nice networking functions check them out.
-Frank CahsioSo long and thanks for all the fish. -
I am using the source from the web-site, GameCode2.exe
in the Netowrk directory:
\SOURCE\Network\net.h(6):#include "packets.h".
I suspect it must be in one on the required SDK's or extras mentioned in the "readme_devsetup.txt". -
Originally posted by FrankCashio
-Frank Cahsio
I think you spelled your name wrong. hahahahaahahahahahahahahahahahahahaha!
Sorry.
I got it to run and compile with no special handling of packets.h or journal.h. This is strange, so I checked my entire hard drive(s) for a packets.h file. It found nothing. Same for journal.h.
So I see the line you cited in net.h, and I decided to search the entire codebase for "net.h". Nothing in the compiled portion of GameCode is doing a #include on net.h. (net.cpp is not a part of the project) In fact, net.cpp is also doing a #include on "journal.h", which does not exist on my hard drive(s).
This explains why I am not getting any compiler complaints about a missing packets.h file... because nothing in the code is compiling net.h or net.cpp. I even deleted the files net.h and net.cpp to see if I could still compile. I can.
So a new mystery arises: Why is net.h and net.cpp there if they are not being used, and why is your vc6 compiler trying to compile net.cpp if it is not included as part of the project?
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0