Difference between revisions of "Server Access"


Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0102f68/fos/wiki/includes/MagicWord.php on line 902
From FOS Wiki
Jump to: navigation, search
m (turn on wifi!)
(added some titles for more overview)
Line 1: Line 1:
 
= The Socket =
 
= The Socket =
 +
==Modify the project file==
 
The first thing to do is add ''networking'' to the project file, so that Qt knows that we wanna work with the network model.  
 
The first thing to do is add ''networking'' to the project file, so that Qt knows that we wanna work with the network model.  
 
+
==The class FOSClient==
 
When the waiter starts the orderman the application has to find out the ip adress and the port which allows the communication with the server. The port is set in the application settings and must correspond to the FOS server port specified in the server settings. The class [http://qt-project.org/doc/qt-5.1/qtnetwork/qnetworkconfigurationmanager.html#details QNetworkConfiguration] provides access to the network configurations known to the system and allows to find out the router port with the function [http://qt-project.org/doc/qt-5.1/qtnetwork/qnetworkconfigurationmanager.html#allConfigurations allConfigurations]().
 
When the waiter starts the orderman the application has to find out the ip adress and the port which allows the communication with the server. The port is set in the application settings and must correspond to the FOS server port specified in the server settings. The class [http://qt-project.org/doc/qt-5.1/qtnetwork/qnetworkconfigurationmanager.html#details QNetworkConfiguration] provides access to the network configurations known to the system and allows to find out the router port with the function [http://qt-project.org/doc/qt-5.1/qtnetwork/qnetworkconfigurationmanager.html#allConfigurations allConfigurations]().
  

Revision as of 07:07, 5 December 2013