Re: how to serialize Socket handle
Sean Meisner <[email protected]>
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <1386DAEC9713D51180FD0002A55CFC7209A016C4@Ohdubexmb01.uswin.ad.vzwcorp.com> |
Hi Hong, You cannot serialize a socket or filehandle in a meaningful way. These are not simple data stores in memory, they are handles representing operating system resources. You must adjust your program logic to serialize data only. Cheers, Sean > -----Original Message----- > From: Hong Yan [mailto:[email protected]] > Sent: Tuesday, August 13, 2002 5:05 PM > To: [email protected] > Subject: [SOAP] how to serialize Socket handle > > > Hi, > > I am using SOAPLite and have trouble to serialize/deserialize the > IO:Socket::Inet handled using soap calls. I tried to do it > using Storable > freeze/thaw method, which works for XML::DOM object, but not > working for > the IO handler. I appreciate any help. > > The handle dump look like this > $VAR1 = bless( { 'Socket' => bless(\*Symbol::GENO', > IO::Socket::INET'}, 'Hydra::PS' } > where Hydra::PS is my class name, which contains the socket handle > > > Any suggestions > > > Qinghong > > You can read messages from the SOAP archive, unsubscribe from > SOAP, or subscribe to other > DevelopMentor lists at http://discuss.develop.com. > You can read messages from the SOAP archive, unsubscribe from SOAP, or subscribe to other DevelopMentor lists at http://discuss.develop.com.