From d23cd55655dabed0271710618c622ed9ba3ed49d Mon Sep 17 00:00:00 2001 From: nathan boileau Date: Fri, 6 Jan 2023 13:47:37 +0100 Subject: [PATCH] test --- WEB/Client/Client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/WEB/Client/Client.php b/WEB/Client/Client.php index 1a74cb26..21c10fcc 100644 --- a/WEB/Client/Client.php +++ b/WEB/Client/Client.php @@ -7,6 +7,7 @@ class Client{ // Créer une socket var_dump(socket_create(AF_INET, SOCK_STREAM,0)); $this->socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("la socket n'a pas pu être créée"); + socket_bind($this->socket,'0.0.0.0', 4000) or die("la socket n'a pas pu être attachée à l'adresse ip et au port"); } public static function getInstance() {