|
What do you mean, it just hangs ?
You're not getting any messages or anything from it ?
Or you are getting messages, but it never comes past the accept(...) part ?
You do know, befor you can go on from that line, there has to be a client connecting on the port, this is listening from. (addr.sin_port) Else accept() will never return.
|