Sorry, but I don't really understand what you want to do.
Do you have a more concrete example ?
Or even a beginning of code ?
What do you want to do with the 'commands' ?
How many 'commands' do you imagine.
An easy way could be a TextBox where you can enter a command line and a button to execute the command.
But without more precise information it is difficult to give good advices.
Err, no but have a look at this.but how would I prevent User Input data from being mixed up with Output data etc. Does this make sense?
I'm afraid that I have no idea as I don't know what either your client or server objects areHow do I send the byte to the server using the client or server object?
client.New1
server.New1(23)
client.Connect("IP",23)
stream.New1(client.GetStream,False)
Msgbox("Connected!")
QuitMe=False
Do
ReceiveDisp
UserInput
Until QuitMe=True
'Msgbox(StrLength(s))
client.Close
End Sub
Sub ReceiveDisp()
Do
data = stream.readbyte 'Reads each byte until a linefeed is seen
If data=10 Then txtOut.Text = txtOut.Text & CRLF
txtOut.Text = txtOut.Text & Chr(data)
txtOut.SelectionStart = StrLength(txtOut.Text)-2
txtOut.ScrollToCaret
Loop Until client.DataAvailable=False
End Sub
Sub UserInput()
Dim d
d=stream.Writebyte(Asc(cmd))
if cmd="q" then QuitMe=True
End Sub
Sub txtReceive_KeyPress (key)
If key=Chr(13) Then
Cmd=StrAt(txtOut.Text,StrLength(txtOut.Text)-2)
endif
End If
End Sub