HOW TO RUN PROGRAM AND TEST IT: a) Check Number of Arguments can only receive two, a Port and A password (password bot Yet defined)
b) Build Server object you can pass any port within the limits. I have been using 6667 i) Calls the function Init which will do the primary set ups of the server
c) StartConection and open sockets, this is made by 4 steps:
d) Connection is set and now we handle it with HandleConnection(), which will do the following actions in its compossition: i) Checks if any user as connected to the server and reports back ii ) Checks if any user sent a message with the recev() function iii) Keeps user data which we need to understand how to extrapulate that and create clients from There iV) Checks if any user disconected from the server
e) To run the program and test it without the UGI its pretty simple, just follow the following steps:
Type a message on terminal 2
Congratz!! you just did your first IRC connection and trasmited information trough a TPC protocol :D
HOW TO RUN PROGRAM AND TEST IT WITH IRC CLIENT HEXCHAT: a) make install => it will automatically install HEXCHAT in your machine b) make config => It will make necessary configurations in your HEXCHAT and set it ready to run c) make run => Will run the program with a pre-defined set of input and a port, it will automatically open your HEXCHAT interface. It will prompt you to open HEXCHAT I) Do you want to start an instance of Hexchat: "y" II) In HEXCHAT check box: Show Favorites Only III) Select ft_irc (should be the only option available) IV) Click connect => It will open the Hexchat interface and connect it to your terminal V) In terminal again: Do you want to start an instance of Hexchat: "n" (unless you wwant to open many HEXCHAT interfaces, which you can) VI) In HEXCHAT input the following command for testing purpuses: /MESSAGE "Your Message"
Notes:
Hexchat configurations: