Thread: sockets
View Single Post

  #2 (permalink)  
Old 01-30-2004
René Kjellerup
 
Posts: n/a
Default Re: sockets


"Andreas Røsdal" <andrearo@stud.ntnu.no> skrev i en meddelelse
news:Pine.LNX.4.58.0401301359530.17224@tiger.stud. ntnu.no...
> hi,
> I have a question about C sockets. Is this possible:
> 1. start application, and establish socket connection.
> 2. quit application, without closing connections (!!)
> 3. restart application, and continue using old connections?
>
> Andreas R.


Short, No you can't.
As you quit your application, you close all open File descriptores.
And when you create your socket it will be assigned a file descriptor.
which it basically uses for I/O functions at low level.

R.Kj.


Reply With Quote