C Socket Programming, problems with select() and fd_set
Posted
by wretrOvian
on Stack Overflow
See other posts from Stack Overflow
or by wretrOvian
Published on 2010-03-29T17:43:11Z
Indexed on
2010/03/29
18:23 UTC
Read the original article
Hit count: 625
Hello
I'm learning my way about socket programming in C (referring to Beej).
Here is a simple multi-user chat server i'm trying to implement: http://pastebin.com/gDzd0WqP
On runtime, it gives Bus Error. It's coming from the lines 68-78.
Help me trace the source of the problem?
in fact, WHY is my code even REACHING that particular region? I've just run the server. no clients have connected.. :@
ps - i know my code is highly unreliable (no error checks anywhere), but i WILL do that at a later stage, i just want to TEST the functionality of the code before implementing it in all it's glory ;)
© Stack Overflow or respective owner