JScript Posted August 8, 2012 Author Posted August 8, 2012 Thank you, i've updated the first post with the new example! Regards, João Carlos. http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
j0kky Posted October 13, 2014 Posted October 13, 2014 I usually hate necro-posting but I'm writing here because I think this snippet will be very useful to everyone who will use Autoit with sockets in the future. The function doesn't work as expected with time interval values that are not a multiple of seconds because the second parameter of timeval structure used by winsock "select" function must be expressed in microseconds while actually the snippet expresses it in millisecond. The correction is very simple: just replace DllStructSetData($to, 2, Mod($iTimeOut, 1000)) with: DllStructSetData($to, 2, Mod($iTimeOut, 1000) * 1000) Spoiler Some UDFs I created: Winsock UDF STUN UDF WinApi_GetAdaptersAddresses _WinApi_GetLogicalProcessorInformation Bitwise with 64 bit integers An useful collection of zipping file UDFs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now