Socket Receive Buffer

Discussion in 'Python' started by christofer, Mar 7, 2004.

  1. christofer

    christofer Guest

    I am writing a small IRC type server. I also have a small test client
    for obvious reasons. My problem is that when receiving input from the
    server, my client sometimes ends up with two messages in the same
    input buffer, which obviously causes problems. Anybody know why it is
    doing this?
     
    christofer, Mar 7, 2004
    #1
    1. Advertising

  2. christofer wrote:
    > I am writing a small IRC type server. I also have a small test client
    > for obvious reasons. My problem is that when receiving input from the
    > server, my client sometimes ends up with two messages in the same
    > input buffer, which obviously causes problems. Anybody know why it is
    > doing this?


    Are you delimiting each message sent from the server with a '\n' ?
     
    Stewart Midwinter, Mar 7, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Laszlo Nagy
    Replies:
    1
    Views:
    5,090
    Mark Wooding
    Jan 27, 2009
  2. Jean-Paul Calderone
    Replies:
    0
    Views:
    1,027
    Jean-Paul Calderone
    Jan 27, 2009
  3. Laszlo Nagy
    Replies:
    0
    Views:
    594
    Laszlo Nagy
    Feb 1, 2009
  4. Steve Holden
    Replies:
    0
    Views:
    711
    Steve Holden
    Feb 1, 2009
  5. John Ramsden
    Replies:
    1
    Views:
    145
    Brian McCauley
    Aug 5, 2003
Loading...

Share This Page