Hi,
once i call shutdown function for socket for data transmission. it stop data transmission. can i re-enable to data transmission for socket. how can i do that?
----------
Linux Learner
shutdown function in linux
Re: shutdown function in linux
Hi, Linux Learner,learner wrote:Hi,
once i call shutdown function for socket for data transmission. it stop data transmission. can i re-enable to data transmission for socket. how can i do that?
----------
Linux Learner
If you issue a shutdown command , even the data transmission shuts down. Sounds logical to me! If you shut down the coffee maker, no more coffee is being made!
If you want to re-enable the transmission, I guess you will have to re-start your Puppy and re-do the transmission once more.
Bye for now.
musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
Re: shutdown function in linux
I think there's no way. Create a new socket and establish a new connection.learner wrote: once i call shutdown function for socket for data transmission. it stop data transmission. can i re-enable to data transmission for socket. how can i do that?
shutdown() doesn't close the file descriptor. So it might be valid to call connect() on it again, but it isn't documented.