Skip to content

Instantly share code, notes, and snippets.

View tgalopin's full-sized avatar

Titouan Galopin tgalopin

View GitHub Profile
@tgalopin
tgalopin / puli-cli-faliures
Last active August 29, 2015 14:28
puli-cli-faliures
.............................................................. 62 / 227 ( 27%)
.............................................................. 124 / 227 ( 54%)
............FFFFFFFFFFF........F.............................. 186 / 227 ( 81%)
........................................F
Time: 5.9 seconds, Memory: 20.00Mb
There were 13 failures:
1) Puli\Cli\Tests\Handler\PackageCommandHandlerTest::testListPackages
FFFFFFFFFFFFF................................................. 62 / 767 ( 8%)
.......................EE..................................... 124 / 767 ( 16%)
.............................................................. 186 / 767 ( 24%)
...............................................SSSSSSSSSSSSSSS 248 / 767 ( 32%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 310 / 767 ( 40%)
SSSSSS........................................................ 372 / 767 ( 48%)
.............................................................. 434 / 767 ( 56%)
.............................................................. 496 / 767 ( 64%)
.........F..........................F.F....FFF..F............. 558 / 767 ( 72%)
.............................................................. 620 / 767 ( 80%)
@tgalopin
tgalopin / OptmizedPathMappingRepositoryPath.php
Created June 26, 2015 11:58
OptmizedPathMappingRepositoryPath.php
<?php
/*
* This file is part of the puli/repository package.
*
* (c) Bernhard Schussek <bschussek@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@tgalopin
tgalopin / OptimizedPathMappingRepository.php
Created June 26, 2015 11:57
OptimizedPathMappingRepository.php
<?php
/*
* This file is part of the puli/repository package.
*
* (c) Bernhard Schussek <bschussek@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

Système – Architecture Client / Serveur

I. Création d'une socket

int socket(int domaine, int type, int protocole)
  • domaine: famille de protocole, méthode d'adressage (AF_INET, AF_UNIX) ;
  • type: type de communication à établir parmi ;