Structured User Story #26 - User runs Gui and connects to Server

USE CASE #26

Every time the user runs the gui, they are given the choice to specify the IP address of a server to connect to, or they can simply connect to the default 'localhost'.

Preconditions

A gui has been started, and a server is already running (otherwise the program will terminate itself).

Success End Condition

The users gui is connected to the server it specifies on its local network.

Fail End Condition

If the server is not running on the given IP address, then the program will terminate itself. If no IPaddress is entered, the program will assume 'localhost' is the selected server, and will attempt to connect to it.

Trigger

User runs the Gui application of the holdem game.

Description Someone the runs the server on a LAN.
Gui is started and user enters a valid name.
The user is prompted to enter the IP of a server to connect to, or can leave the box blank to connect to local host.
The user is connected to the given server as long as a server is running on the given IP address.