[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:

> "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?

Problemet ligger ikke i "the closing statements" - men derimod at din buffer ikke er
allokeret
char buf[len];  // buffer to hold data -- løser problemet

>
> Regards
> Frederik Treue




 
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] *