Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

WinSock w/ pthreads, C++

Name: Anonymous 2008-10-13 5:49

I'm testing a concept so excuse the messy code, it's my first time really using pthreads at all. Running into a bit of a problem; it handles the first client that connects just fine, but none afterward. At first I thought it had something to do with my accept socket, because if I closed the accept socket after setting it to the socket in my thread's object, it would close the connection, so I made an array of accept sockets. Still not working.

In short, I don't want bitching about my coding style, etcetera, as I just threw this together to see how it works. It's most certainly not going to be used in anything; it's just a learning tool of sorts. If anyone can find where and why it's not working as I intend it to, I'd greatly appreciate an explanation.

Code: http://pastebin.com/m47bff01e

Thanks.

Name: Anonymous 2008-10-13 17:39

>>6
This manual page explains the groff an.tmac macro package (often called
the man macro package).  This macro package should be used by  develop-
ers when writing or porting man pages for Linux.  It is fairly compati-
ble with other versions of this macro package,  so  porting  man  pages
should  not  be  a  major  problem  (exceptions  include  the NET-2 BSD
release, which uses a totally different macro package called mdoc;  see
mdoc(7)).
You really ought to be more specific.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List