<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Yeah, I need to start and stop things programatically. It's working again now.</div><div><br></div><div>I'm starting it with:</div><div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>ZnZincServerAdaptor startOn: self port.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>ZnZincServerAdaptor default&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>serverClass: ZnManagingMultiThreadedServer;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>codec: (GRCodec forEncoding: 'utf8');</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>start.</div></div><div><br></div><div><br></div><div>This was my first attempt:</div><div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>ZnZincServerAdaptor default</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>port:&nbsp;self port;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>...</div></div><div>but it wasn't working because default was answering nil.</div><div><br></div><div>Something I've found curious…&nbsp;it's not causing any problems but&nbsp;for some reason when I stop it with:&nbsp;</div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>ZnZincServerAdaptor stop.</div></div><div><br></div><div>everything continues to be served</div><div><br></div><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><a href="http://about.me/sebastianconcept">sebastian</a></div><div><br></div><div>o/</div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>On Apr 4, 2012, at 4:42 AM, Sven Van Caekenberghe wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">That is why there are easy and hard ways to do the same ;-)<br><br>Seaside adaptors, the way they are managed and their interactions with an HTTP server are a bit hard to understand, so easily broken.<br><br>As for pointers: ZnServers work by using a delegate to handle requests. If you see the welcome page, that means that the server that you are talking to has a ZnDefaultServerDelegate instance as delegate. Normally, there should be a ZnSeasideServerAdaptorDelegate instance there (see ZnZincServerAdaptor&gt;&gt;#basicStart).<br><br>But you have to understand the interaction between WAServerAdaptor and WAServerManager too: the manager is in control.<br><br>HTH,<br><br>Sven</span></blockquote></div><br></body></html>