About 900,000 results
Open links in new tab
  1. TCP and UDP server using select - GeeksforGeeks

    Nov 5, 2021 · The Select function is used to select between TCP and UDP sockets. This function gives instructions to the kernel to wait for any of the multiple events to occur and awakens the process only after one or more events occur or a specified time passes.

  2. Network Programming: select & poll functions - Blogger

    6.3 select Function This function allows the process to instruct the kernel to wait for any one of multiple events to occur and to wake up the process only when one or more of these events occurs or when a specified amount of time has passed.

  3. c - Select function in socket programming - Stack Overflow

    Feb 25, 2016 · The select() function allows you to implement an event driven design pattern, when you have to deal with multiple event sources. Let's say you want to write a program that responds to events coming from several event sources e.g. network (via sockets), user input (via stdin), other programs (via pipes), or any other event source that can be ...

  4. c - How to use select () on sockets properly? - Stack Overflow

    Sep 22, 2015 · setup_server_socket calls bind and listen and sets the socket to nonblocking mode. The following code blocks on the select call it seems, not moving forward to FD_ISSET. I tried connecting a client and it seems to succeed but select never returns anything. What's the proper way to do this? ... return 1;

  5. Chapter 6. I/O Multiplexing: The select and poll Functions - Shichao

    select Function¶ The select function allows the process to instruct the kernel to either: Wait for any one of multiple events to occur and to wake up the process only when one or more of these events occurs, or; When a specified amount of time has passed.

  6. c - How does socket select () work? - Stack Overflow

    As described in network programming books, select () monitors a set of file descriptors for reading. For example, here is part of code: select (numfds, &read_fds, NULL, NULL, NULL); Here numfds is.

  7. The Windows socket select client-server step-by-step program

    The following program example demonstrates the use of select () for server/receiver program. Add the following source code. // application using the select () API I/O model. This sample is. // messages when connections are established and removed from the server. // them as they arrive. When this application receives data from a client,

  8. Socket Programming in C/C++: Handling multiple clients on server ...

    Jul 15, 2024 · There are four functions associated with fd_set: Activating select: Please read the man page for select to check all the arguments for select command. Implementation: Compile the file and run the server. Use telnet to connect the server as a client. Try running on different machines using following command: telnet localhost 8888. Code Explanation:

  9. Using the select () and poll () methods - TechRepublic

    Mar 5, 2002 · The select() and poll() methods are used for multiplexing network sockets. Find out how to use these functions, and learn about their limitations.

  10. Socket Programming: Socket Select - CodingBison

    The way around this problem is to use the socket select () call -- select () allows us to monitor a large number of sockets, all in one shot without having to block individually for each socket.

  11. Some results have been removed
Refresh