ldom.net.gif
  • Home
  • Contact
  • REPETS
  • Code

Une jolie clôture

yo | 24 04 2008


Une jolie clôture avec des crayons de couleurs pour géants.
[fence design]
 

Comments
No Comments »
Categories
Cyberspace
Comments rss Comments rss
Trackback Trackback

Arriverez-vous à regarder ça jusqu’au bout ?

yo | 22 04 2008

Fans d’escalade (dont je fais partie) : voici ce qu’il faut parcourir pour grimper à El Chorro.

Comments
No Comments »
Categories
Uncategorized
Comments rss Comments rss
Trackback Trackback

De la pub à la réalité

yo | 7 04 2008


De la pub à la réalité
Une centaine de produits comparés à leur pub et packaging. Saisissant !
[ads consumer products]
 

Comments
No Comments »
Categories
Cyberspace
Comments rss Comments rss
Trackback Trackback

La guitare de Jon Burgerman

yo | 24 03 2008


La guitare de Jon Burgerman
Mmh, on irait prendre des cours rien que pour pouvoir la tenir.
[guitar pop art]

Comments
No Comments »
Categories
Cyberspace
Comments rss Comments rss
Trackback Trackback

Console shelves

yo | 22 02 2008


La bibliocache (suite)
Une autre bibliothèque bien sympathique
[livres meubles cave cachette]

Comments
No Comments »
Categories
Cyberspace
Comments rss Comments rss
Trackback Trackback

Winsock problem: connect() works on the client side but accept() blocks on the server side

yo | 29 01 2008

While writing a proof-of-concept Winsock program, I run into an issue that is worth sharing, especially with Winsock beginners. I hadn’t done socket programming for a while, so forgive my stupidity.

Basically, I had the server code to do this :

  1. while (true)
  2. {
  3.     //…
  4.     serverSocket = socket(…);
  5.     setsockopt(serverSocket, SO_REUSEADDR, …);
  6.     bind(serverSocket, …);
  7.     listen(serverSocket, portNumber);
  8.     clientSocket = accept(…);
  9.     // do something with the client
  10. }

This was working for the first 2 calls of the client, but at the 3rd call, the client’s connect() would work and the server would be stuck on the accept().

Foolish me! After a little investigation, I realized you don’t put the listen() call inside the server loop…

Here’s the proper code:

  1. //…
  2. serverSocket = socket(…);
  3. setsockopt(serverSocket, SO_REUSEADDR, …);
  4. bind(serverSocket, …);
  5. listen(serverSocket, portNumber);
  6. while (true)
  7. {
  8.     clientSocket = accept(…);
  9.     // do something with the client
  10. }

Hope this helps…

Comments
No Comments »
Categories
Code
Comments rss Comments rss
Trackback Trackback

Esclaffades 2007

yo | 1 10 2007

5 minutes sur les Esclaffades 2007 de St-Hélen (22). La troupe de danse est Pied en Sol.

Comments
No Comments »
Categories
Projets, Video
Comments rss Comments rss
Trackback Trackback

Alien le légume

yo | 19 08 2007


Alien le légume
Il fait quand même moins peur quand il est fait de légumes…
[alien cinema monstre]
 

Comments
No Comments »
Categories
Cyberspace
Comments rss Comments rss
Trackback Trackback

Wall House

yo | 23 07 2007


Wall House
Dans ces conditions, je veux bien faire du camping.
[architecture house tent]
 

Comments
No Comments »
Categories
Cyberspace
Comments rss Comments rss
Trackback Trackback

Ecrire avec la lumière

yo | 8 07 2007


Ecrire avec la lumière
Ecrire avec la lumière la nuit dans la ville (non ce n’est pas le titre d’un livre de Borhinger).
[city urban light night]
 

Comments
No Comments »
Categories
Cyberspace
Comments rss Comments rss
Trackback Trackback

« Previous Entries

complétude

  • Everything2
  • ffffound
  • Halfbakery
  • Wikipedia
  • Wordcount

explorations

  • Bradype Ludique, sa vie, son oeuvre.
  • Digital Photography Review
  • DVXuser.com
  • Gizmodo
  • Journal d’un avocat
  • Kopikol
  • Kuro5hin
  • Lafraise
  • MacBidouille
  • Made in Tokyo
  • New urban legends
  • Seth Godin
  • Tech dirt
  • Tokyo Times
  • [daily dose of imagery]

del.icio.us

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox