Re: Sockets/Linux/C question

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sat, 11 Nov 2000, Kayhlan wrote:
>> Hello folks,
>> 
>> Cense, your assistance earlier was tremendous and greatly appreciated. I used
>> what
>> you said to help make my connections routine work nicely.
>> 
>> But now, I fear I'm back with another query... I'm wondering if anyone out
>> there
>> knows anything about sockets in linux that might help me. As I've said
>> before, I
>> began coding a MUD from Pete's example of a client server with my own ideas
>> worked
>> into it. I am now online and open to the public and I am having a horrible
>> problem
>> with lag.
>> 
>> It seems that the accept() and the poll() commands seriously lag the game
>> when even
>> one of the sockets has a bad connection. Polls timeout is now set to 50 and
>> accept
>> as far as I've seen, does not have a timeout. Can anyone steer me in the
>> right
>> direction, provide me a couple of clues or aid me in this way at all?
>> 
>> Thank you for your time,
>> 
>> Kayhlan

I could try and give you another hand with this problem but i would might need
to see sections of the code where your make your `accept( )` and ``poll( )`
calls. Perhaps with just a more indepth question with specific examples of your
code i could help as well.

Just another question, are you using multiplexing I/O as in "one server, many
clients" as opposed to "one server, one client"? Can more than one person play
the game at the same time?

-- 
evil, corruption and bad taste
^[cense]

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu