Thread: Socket Select() Delimiter

  1. #1
    Lee A O
    Guest

    Socket Select() Delimiter

    Hello,
    This is a tricky question,
    I've been looking all over for an answer for this,
    any help will be VERY appreciated...

    I'm working on a Socket server which multiplexes
    between the open sockets using the IO:Select()
    function.

    I have a loop that waits for data from any of
    the sockets.

    from what I experienced, the select function waits for a CR/LF delimiter and it knows it has data ready for reading...

    how can I change the CR/LF delimiter into a different one ?

    (I have a client application which I can't change who uses ascii#0 delimiter)

    I'm compiling using GCC on cygwin,
    but its going to run on Linux.

    Much Thanks;
    Lee.

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>the select function waits for a CR/LF delimiter and it knows it has data ready for reading...
    This select function waits for data to arrive, it doesn't care what type. The problem may be with your client, in that it only sends the data when you hit enter?

    >>(I have a client application which I can't change who uses ascii#0 delimiter)
    So do I.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Lee A O
    Guest

    Thanks!

    Thanks,
    I've been looking in the wrong direction...

    ps: What do you think is the maximum connections a Select function can handle ?

    I got up to 260 connections with Perl and I expect to get more with C...

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: Thanks!

    Originally posted by Lee A O
    ps: What do you think is the maximum connections a Select function can handle ?
    http://www.rt.com/man/getdtablesize.2.html
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Socket Select problem
    By saipkjai in forum Networking/Device Communication
    Replies: 4
    Last Post: 02-08-2008, 10:57 AM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM