taskWarmux - Tasks: task #6137, Do not close socket after...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

task #6137: Do not close socket after Network::CheckHost

Submitted by:  Matthieu Fertré <gentildemon>
Submitted on:  Thu Aug 7 19:26:11 2008  
 
Should Start On: Thu Aug 7 00:00:00 2008Should be Finished on: Thu Aug 7 00:00:00 2008
Category: networkPriority: 1 - Later
Status: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open

Thu Aug 7 19:26:11 2008, original submission:

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!

Matthieu Fertré <gentildemon>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gentildemon (Submitted the item)
  •  

    Error: not logged in

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Aug 15 09:53:54 2008gentildemonCategoryNone=>network
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup