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 07 Aug 2008 07:26:11 PM UTC  
 
Should Start On: Thu 07 Aug 2008 12:00:00 AM UTCShould be Finished on: Thu 07 Aug 2008 12:00:00 AM UTC
Category: networkPriority: 1 - Later
Status: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open

Thu 07 Aug 2008 07:26:11 PM UTC, 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)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

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

    Back to the top


    Powered by Savane 3.1-cleanup