[Gambas-user] Conecting to the host via socket component
Daniel Campos
dcamposf at ...626...
Tue Aug 30 17:58:39 CEST 2005
Hi:
I have not very much time free now (sorry), but I will give you some
points to start:
(Read in the www.binara.com web site about documentation related to the
net component)
1) Use the "Connect" method from Socket to connect to the server.
2) You can write data usinbg standard stream methods, for example:
Dim sCad as String
Dim MySocket AS Socket
...
sCad="Hello"
...
WRITE #MySocket,sCad,Len(sCad)
3) Use the "Read" event in order to know when there's data to read, and
read it using
standard stream methods, for example:
READ #MySocket, sCad,Lof(MySocket)
4) Remember to check if any error happened in the connection with the
Status property and
Error event.
Regards,
D. Campos
Arkadiusz Zychewicz wrote:
> I try to write some application which connect to the host.
> So, I put on the main form component Socket but i don't known how
> write to host and i do not known how read from host, too.
>
> I known that is the read event but in which properties is that what
> send to me server?
>
> Arek.
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing
> & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
More information about the User
mailing list