The change affects the field h_addr_list in the record type hostent.
Code: Select all
BB1.6
h_addr_list*: POINTER TO (*?*) ARRAY [untagged] OF POINTER TO ARRAY [untagged] OF in_addr;
where in_addr is an IPv4 address consisting of 4 bytes.
CPC 1.7 rc5
h_addr_list*: POINTER TO (*?*) ARRAY [untagged] OF WinApi.PtrSTR;
where TYPE WinApi.PtrSTR = POINTER TO ARRAY [untagged] OF SHORTCHAR;
In reality, however, it is also in_addr FAR FAR **h_addr_list;
I am not sure if an IPv4 address is a zero terminated string or simply a char[4],
so WinApi.PtrSTR may be misleading.
As far as I see it was correct in BB1.6 and it is simpler to use in CommTCP.
The change description mentions a module CommTCPAsync which I cannot find.
Is there any technical problem solved with the change or is it purely syntactical?
Can anybody look into this before we create an issue for changing this?
- Josef