Re: simple TCP/IP messaging
From: Ook (usenet_at_nospam.emberts.com)
Date: 07/23/04
- Next message: GaryZ: "Re: More Source code for MyProper"
- Previous message: Rush Strong: "Re: VFP 6: Multi-Row R/W Controls"
- In reply to: Jeff Grippe: "Re: simple TCP/IP messaging"
- Next in thread: Lee Mitchell: "Re: simple TCP/IP messaging"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Jul 2004 10:45:32 -0700
I'll post some samples tonight. One is a working chat client/server that
while not simple, does a good job of demonstrating exactly how you talk back
and forth with tcp/ip. I wrote a remote time generator in VFP based on this
architecture that allows clients to connect to a server app to get the
current date/time. It allowed for virtually unlimited concurrent
connections, managed time outs, etc. The hardest concept to grasp is that
for each incoming connection, you have to instantiate a new instance of the
winsock control to handle the communications with each individual client,
but you can create a hundred instances with no appreciable resource load.
There is a simpler dedicated sample that lets two instances talk to each
other - much simpler, but doesn't support multiple connections.
"Jeff Grippe" <jgrippe@hilldun.com> wrote in message
news:10g2ca8b1vk9616@news.supernews.com...
> Any help would be appreciated. Thanks.
>
> "Ook" <usenet@nospam.emberts.com> wrote in message
> news:eDW34qMcEHA.2352@TK2MSFTNGP09.phx.gbl...
> > It's not that simple. I've built apps that do this, and it takes a bit
> more
> > to get them to work. I use the MSWinsock control, and while the end
result
> > works very ver well, the biggest problem with this control is absolutely
> > pathetic documentation. I have some samples, but can't get to them until
> > later tonight.
> >
> >
> >
> > "Jeff Grippe" <jgrippe@hilldun.com> wrote in message
> > news:10g2autsfj8g0ee@news.supernews.com...
> > > Hello, Thanks in advance for the help.
> > >
> > > Does anyone know of an easy to use TCP/IP messaging library. I would
> like
> > to
> > > have something like the following:
> > >
> > > Receiving / Server App (meta code)
> > > Listen for TCP/IP messages && this is a DO WHILE .T. I would
imagine
> > > When Message Received
> > > Process Data
> > > EndWhen Message Received
> > > EndListen for TCP/IP messages
> > >
> > > Sending / Client App
> > > lcData = "Whatever I might need to send to the server"
> > > lcTCP = "192.168.0.200"
> > > SendTCPIPMessage(lcTCP, lcData)
> > >
> > > For my application I only need communication from the Sending App to
the
> > > Receiving App.
> > >
> > > Thanks,
> > >
> > > Jeff
> > >
> > >
> > >
> >
> >
>
>
- Next message: GaryZ: "Re: More Source code for MyProper"
- Previous message: Rush Strong: "Re: VFP 6: Multi-Row R/W Controls"
- In reply to: Jeff Grippe: "Re: simple TCP/IP messaging"
- Next in thread: Lee Mitchell: "Re: simple TCP/IP messaging"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|