test
continuous-integration/drone/push Build is passing Details

ServeurDeTest
nathan boileau 2 years ago
parent 631afae187
commit c9bfa2011c

@ -3,13 +3,6 @@
class Client{ class Client{
private static $instance; private static $instance;
private $socket; private $socket;
private function __construct() {
// 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,'172.21.92.169', 4000) or die("la socket n'a pas pu être attachée à l'adresse ip et au port");
}
public static function getInstance() { public static function getInstance() {
if (self::$instance === null) { if (self::$instance === null) {
self::$instance = new self(); self::$instance = new self();

Loading…
Cancel
Save