Hello Jan,
You can find my modifications between the two lines in the attached files:
// ddileo start
modification....
// ddileo end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Issues:
The "local port number" used to change every time I called the function.
My server used to accept the requests from only one port.
I had to bind the socket to a specific local port ("socket_bind").
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
In order to avoid Warnings from my server I had to add the following
declaration:
$endianness = 0;
and initialization:
$rpacket = str_pad('',256);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Many thank for your work.
Have a nice 2011.
Daniele Di Leo
Original issue reported on code.google.com by CoDeSys....@gmail.com on 1 Jan 2011 at 5:59
Original issue reported on code.google.com by
CoDeSys....@gmail.com
on 1 Jan 2011 at 5:59Attachments: