<div dir="ltr">Guys,<div style>I&#39;ll try to be as exact as I can be with my question, but it may end up being pretty broad. (I&#39;m also relatively new to python, please go easy on my code although suggestions are of course welcome.)</div>
<div style><br></div><div style>The issue I&#39;m running into:</div><div style>When a user connects to the TCP server, they are displayed a welcome menu of things they can do. I&#39;m simply catching the &#39;data&#39; in an if statement to determine which menu item was picked.  The problem is that some of the menu items require further input.  I&#39;ve had to use a series of bools to determine if a certain menu option was previously picked that will then directly send the data into the function / class.  Is there an easier way to go about this? My current method seems a bit backwards and over complicated.  I&#39;m thinking I missed something in the documentation.</div>
<div style><br></div><div style>Anyway, here&#39;s the code: <a href="https://infotomb.com/q4293">https://infotomb.com/q4293</a> // Pass: twisted</div><div style><br></div><div style>(it was part of a challenge, so to speak, don&#39;t take too much out of context)</div>
<div style><br></div><div style>You can see I had trouble with next() and dh().  I&#39;m now trying to move this TCP &#39;framework&#39; over to another project (the above was already submitted), and I&#39;m still running into the same issues.</div>
<div style><br></div><div style>Thoughts?</div><div style><br></div><div style>-A</div></div>