I was able to create a server socket using VB code. I am sending 
data from a Flex test application to my server socket but cannot 
send any data to Flex. Any idea?

--- In flexcoders@yahoogroups.com, Guy Morton <g...@...> wrote:
>
> As Tracy said, yes. A socket is just a network connection. Your 
flex  
> XMLSocket doesn't know or care what language the program 
listening on  
> the other was written in. A socket connection is like a call 
connected  
> between two telephones - if no-one at either end talks or 
neither end  
> understands the other nothing much will happen. It's up to you 
to make  
> conversation by defining how you will pass messages back and 
forth and  
> how you will process them at either end.
> 
> 
> On 15/02/2009, at 3:41 AM, markgoldin_2000 wrote:
> 
> > I am not sure myself about my question :).
> > First, can Flex be listening to a socket that is created within
> > any program? I mean, if a vb program creates a socket using
> > Winsock will Flex be able to listen to such socket?
> > Second, if yes, how would data actually be transfered?
> >
> > Thanks
> >
> > --- In flexcoders@yahoogroups.com, Guy Morton <guy@> wrote:
> > >
> > > Well...nothing would, normally. You'd have to set up a 
server to
> > talk
> > > to you on that socket, develop a protocol for conversing over
> > the
> > > socket, etc.
> > >
> > > An XML socket is just a pipe to communicate over. Unlike 
normal
> > http
> > > requests which encapsulate the http conversation so you don't
> > see it,
> > > a raw XML socket requires you to define what messages are 
going
> > to be
> > > sent by whom and what those messages mean.
> > >
> > > Does that help, or have I misunderstood your question?
> > >
> > > Guy
> > >
> > >
> > > On 14/02/2009, at 10:50 PM, markgoldin_2000 wrote:
> > >
> > > > I am trying to understand how socket communications work in
> > flex.
> > > > This code will connect to a port 8080 on a local computer:
> > > >
> > > > var xmlsock:XMLSocket = new XMLSocket();
> > > > xmlsock.connect("127.0.0.1", 8080);
> > > >
> > > > But what I dont understand is what would be sending data to
> > that
> > > > port?
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > >
> >
> >
> >
>


Reply via email to