Found some horror code for a blitz3d Server,
---------------------------------
Data1=ReadByte(file1)
WriteLine(stream, Data1)
------------------------------------
the above lines is a good example how to make a server HALT :D
First it reads from stream 1 byte (its ok if ther is a byte there)
Second it dosent check if there are any bytes in that stream. if it is not it will halt execution untill there is data.
but in worst case there is other data arives before tha first data and this makes server HALT at first step.
So if you gona write a good tcpip engine folow my rulse :D
---------------------------------
Data1=ReadByte(file1)
WriteLine(stream, Data1)
------------------------------------
the above lines is a good example how to make a server HALT :D
First it reads from stream 1 byte (its ok if ther is a byte there)
Second it dosent check if there are any bytes in that stream. if it is not it will halt execution untill there is data.
but in worst case there is other data arives before tha first data and this makes server HALT at first step.
So if you gona write a good tcpip engine folow my rulse :D