[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] bind()



Frederik Treue wrote:
> 
> Frederik Treue wrote:
> 
> > "Morten S. Olsen" wrote:
> >
> > > Frederik Treue wrote:
> > > >
> > > >     Nu har jeg til gengæld et andet problem. Når jeg forsøger at close() får jeg
> > > > en seqfault, uanset hvad jeg beder den om at close()?
> > >
> > > Du skal ikke bruge close(), du skal bruge shutdown()
> > >
> > > Mvh Morten
> >
> > hmm, det hjalp ikke det mindste. Uanset hvilke arguments jeg prøver at give shutdown,
> > er effekten totalt ligesom close() : den klager over segfault såsnart jeg forsøger at
> > kalde shutdown(). Andre forslag?
> >
> > Regards
> > Frederik Treue
> 
> hmm, efter lidt mere debugging, fandt jeg at problemet ikke ligger i close()/shutdown()
> men i mit recieve call. Programmet kan godt køre videre, men når det ender bliver der
> sendt en segfault ud. Hvorfor nu det?!?

Har du overvejet at allokere noget hukommelse til din buffer? Jeg synes
at det reserverede ord "new" glimrer ved sit fravær i din kode...

Mvh Morten


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *