Ranmaru Posted June 22, 2007 Share Posted June 22, 2007 Ok so I've been working on my server and SocketToIP() is not found anywhere in the help file, except in the TCPRecv() function's help, and it was used in that to get the IP of the socket, but I've tried it and it doesn't work. AutoIt says that this function does not exist. ; Get IP of client connecting Dim $szIP_Accepted = SocketToIP($ConnectedSocket) Link to comment Share on other sites More sharing options...
Helge Posted June 22, 2007 Share Posted June 22, 2007 (edited) It's at the bottom of the example. You need to copy the function into your script if you want to use it. Func SocketToIP($SHOCKET) Local $sockaddr = DLLStructCreate(&][ÝÜÚÜÝÚÜÝZ[ØÚÎI][ÝÊBØØ[ ÌÍØT]HØ[ ][Ýw3%ó3"æFÆÂgV÷C²ÂgV÷C¶çBgV÷C²ÂgV÷C¶vWGVW&æÖRgV÷C²ÂgV÷C¶çBgV÷C²Âb3ÌØíM!= -P°|(ÅÕ½ÐíÁÑÈÅÕ½Ðì±11MÑÉÕÑÑAÑÈ ÀÌØíͽȤ°uot;int_ptr",DLLStructGetSize($sockaddr)) If Not @error And &ÌÍØT]ÌHH[ ÌÍØT]HØ[ ][ÝÕÜÌÌÌ ][ÝË V÷C·7G"gV÷C²ÂgV÷C¶æWEöçFögV÷C²ÂgV÷C¶çBgV÷C²ÄDÄÅ7G'V7DvWDFFb33c·½È°Ì¤¤(%9½ÐÉɽÈQ¡¸ÀÌØíIÐôÀÌØíIÑlÁt(±Í( $aRet = 0 EndIf $sockaddr = 0 Return $a][[ Edited June 22, 2007 by Helge Link to comment Share on other sites More sharing options...
Ranmaru Posted June 22, 2007 Author Share Posted June 22, 2007 Ah I so missed that! Thanks. I assumed it was a built-in function. ^^ 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