VicTT Posted June 19, 2005 Share Posted June 19, 2005 Hasn't anyone tested those UDP functions?I can't seem to get them to work..And the examples are "waiting" forum input.... Lols..I could correct all the mistakes in the manual should anyone be interested..By the way..it's AWAITING..not WAITING..Lols..and to think I'm not a native speaker..really..anyone interested in a lot of typo corrections?I just hate to see such a great manual gone to waste by stupid typos..Oh yea..people..help me out..WHY THE HELL DON'T THOSE FUNCTIONS WORK???10x..bye Quote Together we might liveDivided we must fall Link to comment Share on other sites More sharing options...
DaleHohm Posted June 19, 2005 Share Posted June 19, 2005 This topic belongs in the DISORGANIZED RANT forum... oh wait, we don't have one of those here. I wonder why that is? Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
VicTT Posted June 19, 2005 Author Share Posted June 19, 2005 That's coz this DISORGANISED RANT brings up a matter which either is on the DISORGANISED RANT forum or just plain wasn't brought up till now.. So, as I was disorganisedly saying: 1. WHO DO I TALK TO IN ORDER TO CORRECT THE TYPOS IN THE MANUAL and 2. Everyone give a round of applause..It's the UDP function birthday..it's been 1 month since the manual wasn't updated with the examples needed by the average joe..Why is that?Wait..I forgot..this isn't the "CRITICISE THE DEMI-GODS" forum..I wonder why that is? I have the utmost respect for what you people do daily to keep AutoIt "alive"..and you're doing a 'mostly' good job..I'm simply pointing out that this aspect has been (knowingly or unknowingly) left out..Simply saying..DO SOMETHING ABOUT IT! Organised enough?Hope so.. Quote Together we might liveDivided we must fall Link to comment Share on other sites More sharing options...
w0uter Posted June 19, 2005 Share Posted June 19, 2005 lol jackass, post the typo's in the bug report section. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
/dev/null Posted June 19, 2005 Share Posted June 19, 2005 Hasn't anyone tested those UDP functions?I can't seem to get them to work..And the examples are "waiting" forum input....This is your chance to make the manual even better! Take a look at the TCP examples and adapt them to the UDP functions. The function calls a quite similar.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
VicTT Posted June 19, 2005 Author Share Posted June 19, 2005 Well..I've tried to use them a few times..but they don't seem to work..It could be because I have no second box I can use to put a server on..But most likely they should work with localhost, no?.. I'll give it a shot..if no one here has done this till now, it spells "trouble" to me.... Quote Together we might liveDivided we must fall Link to comment Share on other sites More sharing options...
/dev/null Posted June 19, 2005 Share Posted June 19, 2005 I'll give it a shot..if no one here has done this till now, it spells "trouble" to me....UDPBind returns with an error on my system. @error = 10093 (WSANOTINITIALISED). I guess the guy how developed the UDP functions should have a look.$g_IP = "127.0.0.1" ; Create a Listening "SOCKET" ;============================================== $ConnectedSocket = UDPBind($g_IP, 65432) If $ConnectedSocket = -1 Then msgbox(0,"UDP Error", "Error: " & @error) Exit endifCheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
jpm Posted June 20, 2005 Share Posted June 20, 2005 UDPBind returns with an error on my system. @error = 10093 (WSANOTINITIALISED). I guess the guy how developed the UDP functions should have a look.$g_IP = "127.0.0.1" ; Create a Listening "SOCKET" ;============================================== $ConnectedSocket = UDPBind($g_IP, 65432) If $ConnectedSocket = -1 Then msgbox(0,"UDP Error", "Error: " & @error) Exit endifCheersKurt<{POST_SNAPBACK}>I need help to diagnose if there is a problem in UDP. I ask now a long time ago that's UDP lover test it, so please anybody do it and report backThanks Link to comment Share on other sites More sharing options...
/dev/null Posted June 23, 2005 Share Posted June 23, 2005 I need help to diagnose if there is a problem in UDP. I ask now a long time ago that's UDP lover test it, so please anybody do it and report backThanks<{POST_SNAPBACK}>so what's the reason for the error I got: @error = 10093 (WSANOTINITIALISED) ??CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted June 23, 2005 Share Posted June 23, 2005 I was about to test, however, I get a little solid brick wall when trying to create a simple UDP server $uServer = UDPBind("192.168.0.3", 65530) MsgBox(0, "test", $uServer & @CRLF & @AutoItVersion) If $uServer = -1 Then Exit running 3.1.1.50, I'll post a duplicate in the Bug forum Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
/dev/null Posted June 23, 2005 Share Posted June 23, 2005 (edited) I need help to diagnose if there is a problem in UDP. I ask now a long time ago that's UDP lover test it, so please anybody do it and report backthe error I received ("@error = 10093 (WSANOTINITIALISED") indicates, that the function WSAStartup was not be called in advance of calling bind().From MSDN: Winsock Functions"The WSAStartup function must be the first Windows Sockets function called by an application or DLL. It allows an application or DLL to specify the version of Windows Sockets required and retrieve details of the specific Windows Sockets implementation. The application or DLL can only issue further Windows Sockets functions after successfully calling WSAStartup"See also error codes of function bind() and sample code on the same page. MSDN Winsock Functions - bind(). Sample is for TCP. For UDP use SOCK_DGRAM and IPPROTO_UDP in function socket().CheersKurt Edited June 23, 2005 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
jpm Posted June 23, 2005 Share Posted June 23, 2005 (edited) the error I received ("@error = 10093 (WSANOTINITIALISED") indicates, that the function WSAStartup was not be called in advance of calling bind().From MSDN: Winsock Functions"The WSAStartup function must be the first Windows Sockets function called by an application or DLL. It allows an application or DLL to specify the version of Windows Sockets required and retrieve details of the specific Windows Sockets implementation. The application or DLL can only issue further Windows Sockets functions after successfully calling WSAStartup"See also error codes of function bind() and sample code on the same page. MSDN Winsock Functions - bind()CheersKurt<{POST_SNAPBACK}>so use TCPStartup it is not a logical name but it is doing exactly that. Edited June 23, 2005 by jpm Link to comment Share on other sites More sharing options...
/dev/null Posted June 23, 2005 Share Posted June 23, 2005 (edited) so use TCPStartup it is not a logical name but it is doing exactly that. <{POST_SNAPBACK}>Yup, TCPStartup() works for the UDP server. netstat -na returns: UDP 127.0.0.1:65530 *.* So, could we have a UDPStartup() as well ? Or just WinsockInit() Now, I used the scripts of "MSLx Fanboy" from this post UDP functions, but I get an error when UDPSend() is called. The error is: @error = 10038 - WSAENOTSOCK. From MSDN Winsock Error codes:Socket operation on nonsocket.An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid. CheersKurt Edited June 23, 2005 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
/dev/null Posted June 23, 2005 Share Posted June 23, 2005 Yup, TCPStartup() works for the UDP server. netstat -na returns: UDP 127.0.0.1:65530 *.* HOWEVER, even though the server now opens a socket, I'm not able to send data to it. Using netcat I'm sending random characters to port 65530, but UDPRecv() returns just an empty string....CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted June 24, 2005 Share Posted June 24, 2005 (edited) UDPSend gets an error and returns @error = 10038. I'm looking that up now thoughWSAENOTSOCKError Number: 10038Socket operation on non-socket.An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.Source Edited June 24, 2005 by MSLx Fanboy Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
/dev/null Posted June 24, 2005 Share Posted June 24, 2005 (edited) UDPSend gets an error and returns @error = 10038. I'm looking that up now thoughSource<{POST_SNAPBACK}>yes, see my post: #13 in this thread.CheersKurt Edited June 24, 2005 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted June 24, 2005 Share Posted June 24, 2005 :"> I missed that post, sorry. Maybe NetStart()? Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
/dev/null Posted June 24, 2005 Share Posted June 24, 2005 (edited) Maybe NetStart()?<{POST_SNAPBACK}>Hm.. I tend to UDPStartup() although it is redundant with TCPStartup(), otherwise people forget to use that function, because it's in another section of the help file. BTW: I'm working on the problem with jpm. There are some issues in the source code of the UDP functions, which lead to the described errors.CheersKurt Edited June 24, 2005 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted June 24, 2005 Share Posted June 24, 2005 I say that TCPStartup() remain built in, as it might break scripts if the name were changed. Maybe just having a UDPStartup() 'echo' or run the same code as TCPStartup, or just have the UDP help file say that TCPStartup is required or something... Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted June 24, 2005 Share Posted June 24, 2005 (edited) Just a *bump* for /dev/null and anyone else who wants to take a peek. I updated the code thanks to a little smack in the back of the head from Larry...I forgot TCPShutdown... Thanks though, I'm a stickler for closing everything I open, I can't believe I did that Here are the current scripts that I have...If there's something wrong, let me know please! Edit: Current scripts (as of 6/24/05 5:47pm est) are in post # 23 Edited June 24, 2005 by MSLx Fanboy Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) 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