![]() |
|
[C] TCP server - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] TCP server (/showthread.php?tid=6106011) |
TCP server - nullbyte - Aug 29, 2020 Code #include <iostream>For some reason all my end1; lines are causing my program to not compile. I'm not sure why it's an undeclared identifier. Any assistance would be greatly appreciated. It's probably a stupid mistake, but I'm not seeing it. RE: TCP server - Poet - Aug 29, 2020 Pretty sure you're using an integer 1 > end1 Try to use letter l > endl as in end Line RE: TCP server - nullbyte - Aug 29, 2020 (Aug 29, 2020 11:57 AM)0xBlack Wrote: Pretty sure you're using an integer 1 > end1 I'm facepalming so hard right now. Thank you. RE: TCP server - Dexie - Aug 29, 2020 Thanks for the code, and also thank you for commenting it as well, I'm sure it will help some people. RE: TCP server - nullbyte - Aug 29, 2020 (Aug 29, 2020 05:52 PM)Dexie Wrote: Thanks for the code, and also thank you for commenting it as well, I'm sure it will help some people. No problem! I'm in the middle of building a client that you can send certain commands to as well. RE: TCP server - 4Txe4y33C9zvNhMj - Aug 30, 2020 (Aug 29, 2020 05:52 PM)Dexie Wrote: Thanks for the code, and also thank you for commenting it as well, I'm sure it will help some people. Pretty sure it's based on this: https://bitbucket.org/sloankelly/youtube-source-repository/src/8a4847e8ca5f9f039a7246a1172aa87f64ef55c5/cpp/networking/BarebonesClient/Barebones_Client/main.cpp?at=master The guy has some decent tutorials on networking in C++: https://www.youtube.com/user/sloankelly/videos |