Hot chat peer to peer

by  |  03-Jan-2015 00:11

In short, you either listen for a connection (Chat_Server), or connect to a remote IP address (Chat_Client).

From there, you can send text strings back and forth.

Peer to peer games generally still have a game host.

Its the game host that posts the game to the master games list and accepts new connections.

UPDATE: I made a mistake myself, change the object Name of the Send Message button to push Button_3 and that of the Clear Logs button to push Button_4. STEP 2: Compiling Save the project When we look at the codes, we will see or note a function inside the generated codes. Now, define the function in the image below under the retranslate UI function. It calls a function called server_socket and passes the parameter self to it.

To change the object Name, click on the button, Look at the right side of the Qt Framework, You should see a property box. self simply allows the receiving function to access widgets or objects within the self which in our case is the form.

Thanks for reading and hope you learnt sometime today.

Community Discussion