Ranmaru Posted June 22, 2007 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)
Helge Posted June 22, 2007 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
Ranmaru Posted June 22, 2007 Author Posted June 22, 2007 Ah I so missed that! Thanks. I assumed it was a built-in function. ^^
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