Click here to Skip to main content
15,504,549 members
Home / Discussions / Windows Development
   

Windows Development

 
PinnedSome links to get started with Metro PinPopular
Nish Nishant23-Feb-12 11:11
sitebuilderNish Nishant23-Feb-12 11:11 
QuestionRegistry file associations Pin
alex__b24-Nov-22 5:40
professionalalex__b24-Nov-22 5:40 
QuestionHow to seamlessly share code in Visual Studio? Pin
RobertSF16-Sep-22 4:48
professionalRobertSF16-Sep-22 4:48 
AnswerRe: How to seamlessly share code in Visual Studio? Pin
Gerry Schmitz16-Sep-22 7:39
mveGerry Schmitz16-Sep-22 7:39 
GeneralRe: How to seamlessly share code in Visual Studio? Pin
RobertSF16-Sep-22 16:43
professionalRobertSF16-Sep-22 16:43 
AnswerRe: How to seamlessly share code in Visual Studio? Pin
Dave Kreskowiak16-Sep-22 7:49
mveDave Kreskowiak16-Sep-22 7:49 
GeneralRe: How to seamlessly share code in Visual Studio? Pin
RobertSF16-Sep-22 16:49
professionalRobertSF16-Sep-22 16:49 
GeneralRe: How to seamlessly share code in Visual Studio? Pin
Eddy Vluggen16-Sep-22 23:44
professionalEddy Vluggen16-Sep-22 23:44 
GeneralRe: How to seamlessly share code in Visual Studio? Pin
Gerry Schmitz17-Sep-22 10:11
mveGerry Schmitz17-Sep-22 10:11 
GeneralRe: How to seamlessly share code in Visual Studio? Pin
Eddy Vluggen18-Sep-22 8:48
professionalEddy Vluggen18-Sep-22 8:48 
AnswerRe: How to seamlessly share code in Visual Studio? Pin
Mycroft Holmes16-Sep-22 13:09
professionalMycroft Holmes16-Sep-22 13:09 
GeneralRe: How to seamlessly share code in Visual Studio? Pin
RobertSF16-Sep-22 16:43
professionalRobertSF16-Sep-22 16:43 
Questionselect() slowness Pin
Gisle Vanem29-Jun-22 23:18
Gisle Vanem29-Jun-22 23:18 
Hello folks!

In several Winsock programs, I see that a loop with
n = select(max_sock, &read_fd, &write_fd, &except_fd, &timeval);

operation on a non-blocking socket takes approx. 2 seconds to determine there is no
listener for that socket. Even for a localhost:55117 operation.
I have no listening program on port 55117. And I'd expect this to be faster.

Even with curl that's bundled with Windows, I see this:
c:\> curl -4 localhost:55117
curl: (7) Failed to connect to localhost port 55117 after 2055 ms: Connection refused

What / where is this 2 sec. set?
-- Gisle V.

AnswerRe: select() slowness Pin
Pete O'Hanlon29-Jun-22 23:46
mvaPete O'Hanlon29-Jun-22 23:46 
GeneralRe: select() slowness Pin
Gisle Vanem30-Jun-22 0:22
Gisle Vanem30-Jun-22 0:22 
GeneralRe: select() slowness Pin
Pete O'Hanlon30-Jun-22 0:44
mvaPete O'Hanlon30-Jun-22 0:44 
GeneralRe: select() slowness Pin
Gisle Vanem30-Jun-22 0:51
Gisle Vanem30-Jun-22 0:51 
GeneralRe: select() slowness Pin
Dave Kreskowiak30-Jun-22 5:28
mveDave Kreskowiak30-Jun-22 5:28 
GeneralRe: select() slowness Pin
Gisle Vanem30-Jun-22 9:03
Gisle Vanem30-Jun-22 9:03 
GeneralRe: select() slowness Pin
Dave Kreskowiak30-Jun-22 9:12
mveDave Kreskowiak30-Jun-22 9:12 
GeneralRe: select() slowness Pin
Gerry Schmitz30-Jun-22 9:22
mveGerry Schmitz30-Jun-22 9:22 
GeneralRe: select() slowness Pin
Gisle Vanem30-Jun-22 9:51
Gisle Vanem30-Jun-22 9:51 
GeneralRe: select() slowness Pin
k505430-Jun-22 12:18
mvek505430-Jun-22 12:18 
GeneralRe: select() slowness Pin
Gerry Schmitz2-Jul-22 8:12
mveGerry Schmitz2-Jul-22 8:12 
AnswerRe: select() slowness Pin
Eddy Vluggen2-Jul-22 5:32
professionalEddy Vluggen2-Jul-22 5:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.