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 (again error in the link, fixed now)
m (The Socket)
 
Line 1: Line 1:
On login the device (smartphone, pc etc.) must already have been connected to the wireless router which provides the communication. The order man application must receive the appropriate permissions to connect to the server. An important permission is the android [["http://developer.android.com/reference/android/Manifest.permission.html#INTERNET"|INTERNET]] permission, defined in the Manifest file of the client application.
+
= The Socket =
After a successful login the application has to find out the port which allows to communicate with the server.
+
==Modify the Project File==
TODO
+
The first thing to do is add ''networking'' to the project file, so that Qt knows that we wanna work with the network model. Also ''xml'' and ''svg'' will be add so that we can use svg images on the phone.
 +
 
 +
==The Client==
 +
 
 +
The orderman socket uses the class [http://qt-project.org/doc/qt-5.1/qtnetwork/qtcpsocket.html QTcpSocket] to communicate with the FOS server. If the communication fails the user will be asked to set the right FOS server ip. This ip is static and has to be set only once in the settings. The application settings and an explanation how to set the correct port will be shown. The user will also be advertised to turn on wifi and connect to the same router as the FOS server.
 +
 
 +
The socket will be closed when the waiter logs out.
 +
 
 +
= Android Permissions =
 +
The order man application must have the appropriate permissions that allow the connection to the server. An important permission to do that is the [http://developer.android.com/reference/android/Manifest.permission.html#INTERNET INTERNET] permission, which allows applications to open network sockets.

Latest revision as of 19:10, 10 January 2014