[Gambas-user] write to ServerSocket
danielcampos at ...282...
danielcampos at ...282...
Tue May 25 13:05:44 CEST 2004
> PUBLIC SUB Button1_Click()
>
> DIM outstring AS String
>
> IF Server.Status = Net.Connected THEN
> outstring = "message"
> WRITE #Server,outstring,Len(outstring)
> END IF
> END
>
Note that you're trying to send data using directly a ServerSocket object, this is not the right way. ServerSocket just manage remote connections, and creates a Socket object per each new connection, so, to send data to one of the clients, you have to do it through its 'Socket' object. Look at the server socket example, the read and write operations are managed by 'Socket' objects.
Regards,
Daniel Campos
-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 TTC/min)
Minitel: 3615 NETCOURRIER (0,16 TTC/min)
More information about the User
mailing list