server talk headache

Blitz3D Forums/Blitz3D Programming/server talk headache

You need more experience coding simple programs before you start worrying about doing client/server stuff. Your program flow is scary, quite frankly.

Here's (some of) what's wrong:

1. your server accepts a new client every second, ditching any already connected clients.

2. your client is incorrectly using server commands such as AcceptTCPStream() and CloseTCPServer().

Look at the example code for AcceptTCPStream() to see how to correctly set up a client and a server. Better yet, forget about touching network stuff (which is harder to debug and understand) until you're much more comfortable with programming - specifically program flow.

Also, why aren't you posting in the Beginner forum?