Thanks in advance for the help.

I'm trying to build messaging into my app using the Winsock control and
there is something that I don't quite understand.

I need each instance of the app to act as both a client and a server so that
it can receive messages from anywhere and so that it can send messages to
anywhere. Do I need two controls? Do I listen and send on different ports?

Has anyone ever built this type of app using this control?

Thanks,
Jeff

RE: Winsock Control Help by Leemi

Leemi
Fri Aug 11 12:48:56 CDT 2006

Hi Jeff:

I am not sure if this example is what you are looking for, but we have this
article:
For using Winsock:

315124 How to use the Winsock ActiveX control with Visual FoxPro
http://support.microsoft.com/default.aspx?scid=kb;EN-US;315124

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


>Thanks in advance for the help.

>I'm trying to build messaging into my app using the Winsock control and
>there is something that I don't quite understand.

>I need each instance of the app to act as both a client and a server so
that
>it can receive messages from anywhere and so that it can send messages to
>anywhere. Do I need two controls? Do I listen and send on different ports?

>Has anyone ever built this type of app using this control?

>Thanks,
>Jeff


Re: Winsock Control Help by Jeff

Jeff
Fri Aug 11 14:33:59 CDT 2006

Thanks Lee,

Actually I already had that and it was playing with that which led me to my
question.

It appears that the answer is that I need to use UDP protocal and not TCP
protocol. UDP does not have clients or servers and connections are not
required.

It is a simpler (judging by the QuickBasic code) protocol to write for but
it will make debugging my application more difficult as it will require two
separate machine with two distinct name or IP address in order to test.

Thanks again,
Jeff

"Lee Mitchell" <Leemi@online.microsoft.com> wrote in message
news:TTnQx5WvGHA.3920@TK2MSFTNGXA01.phx.gbl...
> Hi Jeff:
>
> I am not sure if this example is what you are looking for, but we have
> this
> article:
> For using Winsock:
>
> 315124 How to use the Winsock ActiveX control with Visual FoxPro
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;315124
>
> I hope this helps.
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> Sincerely,
> Microsoft FoxPro Technical Support
> Lee Mitchell
>
> *-- VFP9 HAS ARRIVED!! --*
> Read about all the new features of VFP9 here:
> http://msdn.microsoft.com/vfoxpro/
>
> *--Purchase VFP 9.0 here:
> http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
> 69-4500-8bf2-3f06689f4ab3&type=ovr
>
> Keep an eye on the product lifecycle for Visual FoxPro here:
> http://support.microsoft.com/gp/lifeselectindex
> - VFP5 Mainstream Support retired June 30th, 2003
> - VFP6 Mainstream Support retired Sept. 30th, 2003
>
>
>>Thanks in advance for the help.
>
>>I'm trying to build messaging into my app using the Winsock control and
>>there is something that I don't quite understand.
>
>>I need each instance of the app to act as both a client and a server so
> that
>>it can receive messages from anywhere and so that it can send messages to
>>anywhere. Do I need two controls? Do I listen and send on different ports?
>
>>Has anyone ever built this type of app using this control?
>
>>Thanks,
>>Jeff
>



Re: Winsock Control Help by Leemi

Leemi
Mon Aug 14 08:57:52 CDT 2006

Hi Jeff:

Thanks for the follow up and the tips on your solution. I am glad you found
something that works.



This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003



>Thanks Lee,

>Actually I already had that and it was playing with that which led me to
my
>question.

>It appears that the answer is that I need to use UDP protocal and not TCP
>protocol. UDP does not have clients or servers and connections are not
>required.

>It is a simpler (judging by the QuickBasic code) protocol to write for but
>it will make debugging my application more difficult as it will require
two
>separate machine with two distinct name or IP address in order to test.

>Thanks again,
>Jeff

"Lee Mitchell" <Leemi@online.microsoft.com> wrote in message
news:TTnQx5WvGHA.3920@TK2MSFTNGXA01.phx.gbl...
> Hi Jeff:
>
> I am not sure if this example is what you are looking for, but we have
> this
> article:
> For using Winsock:
>
> 315124 How to use the Winsock ActiveX control with Visual FoxPro
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;315124
>
> I hope this helps.
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> Sincerely,
> Microsoft FoxPro Technical Support
> Lee Mitchell
>
> *-- VFP9 HAS ARRIVED!! --*
> Read about all the new features of VFP9 here:
> http://msdn.microsoft.com/vfoxpro/
>
> *--Purchase VFP 9.0 here:
>
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
> 69-4500-8bf2-3f06689f4ab3&type=ovr
>
> Keep an eye on the product lifecycle for Visual FoxPro here:
> http://support.microsoft.com/gp/lifeselectindex
> - VFP5 Mainstream Support retired June 30th, 2003
> - VFP6 Mainstream Support retired Sept. 30th, 2003
>
>
>>Thanks in advance for the help.
>
>>I'm trying to build messaging into my app using the Winsock control and
>>there is something that I don't quite understand.
>
>>I need each instance of the app to act as both a client and a server so
> that
>>it can receive messages from anywhere and so that it can send messages to
>>anywhere. Do I need two controls? Do I listen and send on different ports?
>
>>Has anyone ever built this type of app using this control?
>
>>Thanks,
>>Jeff
>




Re: Winsock Control Help by Neil

Neil
Mon Aug 14 19:29:10 CDT 2006

Useful UT article by Alessandro Orlando is:

http://www.utmag.com/wconnect/wc.dll?LevelExtreme~9,7,10,1635

HTH,
Neil

"Jeff Grippe" <jgrippe@hilldun.com> wrote in message
news:12dpa6ag7arddf6@news.supernews.com...
> Thanks in advance for the help.
>
> I'm trying to build messaging into my app using the Winsock control and
> there is something that I don't quite understand.
>
> I need each instance of the app to act as both a client and a server so
> that it can receive messages from anywhere and so that it can send
> messages to anywhere. Do I need two controls? Do I listen and send on
> different ports?
>
> Has anyone ever built this type of app using this control?
>
> Thanks,
> Jeff
>



Re: Winsock Control Help by Jeff

Jeff
Mon Aug 21 14:14:57 CDT 2006

Neil,

Thanks. It is a good article. It does not really address the type of coding
that you need to do to use UDP but it is very comprehensive in going over
what you need to do for TCP protocol. There are also things like the
Autoyeild property that I simply wouldn't have thought of without this
article.

What I am trying to do is have each app be able to send and receive
messages. This requires a connectionless protocol such as UDP.

Once I get some working code I'd be happy to post or share it.

Thanks again,
Jeff
"Neil Waterworth" <spammonkey at microsocks.com> wrote in message
news:OeDNVHAwGHA.2036@TK2MSFTNGP05.phx.gbl...
> Useful UT article by Alessandro Orlando is:
>
> http://www.utmag.com/wconnect/wc.dll?LevelExtreme~9,7,10,1635
>
> HTH,
> Neil
>
> "Jeff Grippe" <jgrippe@hilldun.com> wrote in message
> news:12dpa6ag7arddf6@news.supernews.com...
>> Thanks in advance for the help.
>>
>> I'm trying to build messaging into my app using the Winsock control and
>> there is something that I don't quite understand.
>>
>> I need each instance of the app to act as both a client and a server so
>> that it can receive messages from anywhere and so that it can send
>> messages to anywhere. Do I need two controls? Do I listen and send on
>> different ports?
>>
>> Has anyone ever built this type of app using this control?
>>
>> Thanks,
>> Jeff
>>
>
>