URL:
  <http://gna.org/task/?6137>

                 Summary: Do not close socket after Network::CheckHost
                 Project: Wormux
            Submitted by: gentildemon
            Submitted on: jeudi 07.08.2008 à 19:26
         Should Start On: jeudi 07.08.2008 à 00:00
   Should be Finished on: jeudi 07.08.2008 à 00:00
                Category: None
                Priority: 1 - Later
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The goal of Network::CheckHost is to check that a host is available. This is
done by opening a socket with a very small timeout (5 sec). Then, we close
the socket.

If it was ok, we open a SDL_socket. 

It should be good to use the same socket instead of reopen one.

Unfortunately, Network::CheckHost use posix sockets while we need after a
SDL_socket after play. So a solution would be to rewrite Network::CheckHost
with SDL_socket but it seems that the API provided by SDL_Net is too poor to
do that. For instance, it seems impossible to change the timeout!





    _______________________________________________________

Reply to this item at:

  <http://gna.org/task/?6137>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna

Reply via email to