CONNECT() and CONNECT2() with sockets
Kenneth Brody
kenbrody at spamcop.net
Thu Sep 6 19:26:12 PDT 2018
On 9/6/2018 12:30 PM, Bill Randall via Filepro-list wrote:
>
> Typo - IPv6 is CONNECT2
Additional info:
CONNECT2() supports both IPv4 and IPv6. If you give it an IPv4 address, it
will connect via IPv4. If you give it an IPv6 address, it will connect via
IPv6.
Also, CONNECT2() does not get passed a socket handle, as it creates the
socket based on the IP type:
handle = CONNECT2(port,address)
> On 9/6/2018 12:08 PM, Nancy Palmquist via Filepro-list wrote:
>> Anyone with information on these notes for sockets?
>>
>> I see two commands in the processing help, CONNECT() and CONNECT2(), but
>> when I look at the text it shows:
>>
>> v5.0 status = CONNECT(handle,port,address [ ,family ] ) - IPv4
>> v5.7 status = CONNECT(handle,port,address [ ,family ] ) - IPv6
>>
>> Does this mean there is no CONNECT2() but in 5.7 the connection was
>> upgraded to IPv6? or should the command on the v5.7 line say CONNECT2()?
>>
>> If IPv4 is no longer available will 5.0 filepro no longer work with those
>> sockets, but 5.7 or better is required?
--
Kenneth Brody
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
More information about the Filepro-list
mailing list