[Gambas-user] write to ServerSocket
Janos Sztriko
jsz at ...464...
Mon Jul 7 01:46:47 CEST 2003
Hi all,
A short introduction fro me: I am a 31 year old electronic engineer. I found this great tool one week before, and now I try to use it for building HMIs (Human-Machine Interface).
I started to implement a data server, which interprets the serial port traffic (now I'm going to use the protocol of the OMRON PLCs), and act as a data source for the user windows via TCP/IP. My starting points was the ServerSocket and KlientSocket examples.
No I have a problem. My sender sub something like this:
PUBLIC SUB Button1_Click()
DIM outstring AS String
IF Server.Status = Net.Connected THEN
outstring = "message"
WRITE #Server,outstring,Len(outstring)
END IF
END
(Server is a ServerSocket)
But I got this error:
"Type mismatch: wanted .Stream, got ServerSocket instead"
Is there somebody out there, who can explain the problem for me? What did I wrong?
Thanks in advance,
Janos
More information about the User
mailing list