[Gambas-user] Eeek... help. Gambas 3, latest SVN

Jussi Lahtinen jussi.lahtinen at ...626...
Sun Jan 23 13:45:21 CET 2011


http://gambasdoc.org/help/comp/gb.net/socket?v3
http://gambasdoc.org/help/lang/split?v3

I don't think client knows how to split string to array, so you have to do
it your self.

Jussi



On Sun, Jan 23, 2011 at 11:39, Anthony Ivan
<imperious.ldr at ...2360...>wrote:

> Hi Everyone...
>
> Once again a silly basic question - the answer to which is eluding me:
>
> I am trying to send a string[] of data from one computer to another....
>
> THUS on the server side:
> Public Sub MessageClients(myMessage As String[])
>   Dim varSocket As Socket
>   For Each varSocket In Clients
>     Try Write #varSocket, myMessage As String[]
>   Next
> End
>
> On the Client side....
> Public Sub varSocket_Read()
>     DIM myData as String[]
>     If varSocket.Status <> Net.Connected Then Return
>     Try myData = Read #Last As String[]
> End
>
>
> The above creates a signal 11 failure. The data is being sent out from
> the server. If I change things around to send and receive a simple
> string there is no problem. The question is: How does one receive a
> String[] array at the client end?
>
> Any insight greatly appreciated.
>
> Anthony
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> 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