packets can now be sent from client to match server

#story[1188]
This commit is contained in:
hba56
2017-08-30 15:26:54 +12:00
parent b2bd4fdc1c
commit 83f756d7d8
6 changed files with 130 additions and 33 deletions
@@ -11,6 +11,7 @@ import javafx.scene.layout.AnchorPane;
import visualiser.model.RaceConnection;
import java.io.IOException;
import java.net.DatagramSocket;
import java.net.Socket;
import java.net.URL;
import java.util.ResourceBundle;
@@ -39,6 +40,9 @@ public class LobbyController extends Controller {
private ObservableList<RaceConnection> connections;
//the socket for match browser
private DatagramSocket udpSocket;
@Override
public void initialize(URL location, ResourceBundle resources) {
@@ -120,7 +124,8 @@ public class LobbyController extends Controller {
/**
* Enter the lobby page.
*/
public void enterLobby(){
public void enterLobby(DatagramSocket udpSocket){
lobbyWrapper.setVisible(true);
this.udpSocket = udpSocket;
}
}