Is Creating a tcp stream the same as opening a stream?
What I did was ask whether or not you're the host, then if you are it creates a tcp server. I you're the client, it opens a tcp stream called svrstrm on the local machine. Then in the update part, it tests whether youre the host or not (host=?) If you are the host (host<>2) then it accept streams from the server and reads them and it opens one to be written to. If youre the client (host=2) then accepts a stream from svrstrm (which is where it gives me the error) and read it, then opens and stream and writes to it.
What I did was ask whether or not you're the host, then if you are it creates a tcp server. I you're the client, it opens a tcp stream called svrstrm on the local machine. Then in the update part, it tests whether youre the host or not (host=?) If you are the host (host<>2) then it accept streams from the server and reads them and it opens one to be written to. If youre the client (host=2) then accepts a stream from svrstrm (which is where it gives me the error) and read it, then opens and stream and writes to it.