Socket listen hang
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Socket listen hang




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Socket listen hang  
jessie


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 08:48 PM

I have a Unix C++ socket program that always hang on listen(). nothing
returned, the program stoped there forever. Is there any option I should
apply when compile the program use g++?

I use g++ xx.cpp -lnsl -lsocket -o xx


Thanks







[ Post a follow-up to this message ]



    Re: Socket listen hang  
Barry Margolin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-25-05 01:49 AM

In article <dji31c$gi2$1@gist.usc.edu>,
"jessie" <jessiezyt@hotmail.com> wrote:

> I have a Unix C++ socket program that always hang on listen(). nothing
> returned, the program stoped there forever. Is there any option I should
> apply when compile the program use g++?
>
> I use g++ xx.cpp -lnsl -lsocket -o xx

If you want to use a debugger effectively, you should compile with the
-g option.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:06 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register