Hello Éric, It is by design, so no bug. I forgot the reason because it is so long ago, but you have to set addr, port, proto before call Listen and also before calling Connect;
--- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Friday, December 14, 2007, 19:47, Éric Fleming Bonilha wrote: > Hello, > I also would like to know why this happens... I have released one version of > our software and I forgot to change the protocol to 'UDP' when stop -> start > listening and I have released it with a bug because ICS return to default > 'TCP' > Éric Fleming Bonilha > Diretor de Tecnologia > Digifort - Sistema de Segurança Digital > +55 (11) 4226.2386 > http://www.digifort.com.br/ > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <twsocket@elists.org> > Sent: Friday, December 14, 2007 12:20 PM > Subject: [twsocket] Why does listening TWSocket reset defaults on close? >> Hello: >> I just realized that if I close a listening >> TWSocket component (to stop listening), it reverts >> all defaults, including the listening port and >> address, so that if I want to start listening again, >> it will fail (unless I set the port). >> >> Although I can very easily work around this, I was >> just wondering why this is done? It seems to me that >> stopping a listening server from listening should not >> reset all its application-specific properties >> (specially the port and address). >> >> And it even occurs to me that its >> counter-intuitive to how most of the ICS components >> work: if you were using the component on a form, and >> configured it at design time (which, by the way, I >> don't do), then if you ever closed the socket you >> won't be able to listen again. >> >> Perhaps there is a valid reason for it, I just >> want to understand it. >> -dZ. >> >> P.S. I'm sorry if I have been asking a lot of >> questions about the same components lately, but I'm >> trying to get acquainted with the lower level >> TWSocket component. >> >> -- >> DZ-Jay [TeamICS] >> http://www.overbyte.be/eng/overbyte/teamics.html >> >> >> -- >> To unsubscribe or change your settings for TWSocket mailing list >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket >> Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be