Rurorita Posted November 1, 2021 Share Posted November 1, 2021 (edited) Hi, this isnt apparently the way todo this DllCall($__net_hWs2_32, "int", "setsockopt", "uint", $hSocket, "int", "IPPROTO_TCP", "int", "TCP_NODELAY", "int", 0, "int", 1) I mean the highlighted strings. i found the socket UDF by funkey at And he has alot of Constants in his UDF where for example "$IPPROTO_TCP" is 6. And i wonder how he knows that. https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt Doesnt list any numbers and i seemingly dont find any article on the web that tells me what "IPPROTO_TCP" and "TCP_NODELAY" in the DllCall need to be, because im sure that im not supposed to pass the strings of them but integers. I tried to find any article that desribes the definitions of these values so far and wasnt successfull. So what needs to be in the highlighted spots of the DllCall ? Edited November 1, 2021 by Rurorita Amateur Coder - UDF's _storageS-UDF , _netcode-UDF (_netcode_Core-UDF, _netcode_AddonCore-UDF, _netcode_Proxy-UDF, _netcode_Relay-UDF, _netcode_Router-UDF) Link to comment Share on other sites More sharing options...
Solution funkey Posted November 1, 2021 Solution Share Posted November 1, 2021 Hi, i just google for the values like this: '#define IPPROTO_TCP' Then the results show me header files defining the values. Rurorita 1 Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Link to comment Share on other sites More sharing options...
Rurorita Posted November 1, 2021 Author Share Posted November 1, 2021 1 hour ago, funkey said: Hi, i just google for the values like this: '#define IPPROTO_TCP' Then the results show me header files defining the values. Thanks funkey ! i replaced IPPROTO_TCP with TCP_DELAY in the search field and then came across this https://sites.uclouvain.be/SystInfo/usr/include/netinet/tcp.h.html Amateur Coder - UDF's _storageS-UDF , _netcode-UDF (_netcode_Core-UDF, _netcode_AddonCore-UDF, _netcode_Proxy-UDF, _netcode_Relay-UDF, _netcode_Router-UDF) Link to comment Share on other sites More sharing options...
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