should you use select with udp sockets?

This is a discussion on should you use select with udp sockets? within the Game Programming forums, part of the General Programming Boards category; i am wondering does it matter if i dont use select with udp and is it only a tcp thing?...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    319

    should you use select with udp sockets?

    i am wondering does it matter if i dont use select with udp and is it only a tcp thing?

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    68

    easy

    Try researching non-blocking sockets instead of select.

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,265
    Quote Originally Posted by Anddos View Post
    i am wondering does it matter if i dont use select with udp and is it only a tcp thing?
    select() is not just a tcp thing. When you call recvfrom() on a socket, if there is no data to be read, then it will block. Calling select() allows you to check if there is any data to be read off the socket.
    bit∙hub [bit-huhb] n. A source and destination for information.

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    319
    ok thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 06:49 PM
  2. Using select() for client UDP
    By jazzman83 in forum C Programming
    Replies: 2
    Last Post: 04-03-2007, 06:31 AM
  3. simultaneously waiting for data on FIFO and UDP using select call
    By yogesh3073 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-05-2007, 09:53 AM
  4. multiple UDP sockets with select()
    By nkhambal in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-17-2006, 07:36 PM
  5. Sockets and select()
    By xxx in forum Windows Programming
    Replies: 0
    Last Post: 11-18-2002, 03:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21