mmavipc Posted June 1, 2008 Share Posted June 1, 2008 (edited) Okay here's my problem. My AutoIt client can only connect to my AutoIt server once per every time it starts. I don't want that. I want it to be able to connet to the server multiple times. Heres my code tcpstartup() Func isserialvalid($serial) $s = "" $s = TCPConnect($ip, 5657) If $s = -1 Or @error Then MsgBox(0, $s & " | " & @error, "OMG :o THERE WAS A ERROR CONTACT ANTHRAX INTERASCTIVE IMMIDIATLY WITH ERRORID: servdown") Return 0 EndIf TCPSend($s, sen("VALID|" & $an & "|" & $serial, "wee")) $data = "" Do $data = $data & sde(TCPRecv($s, 2048),"wee") Until $data <> "" TCPCloseSocket($s) Return $data EndFunc ;==>isserialvalid Dont ask about sen or sde oops i posted this in thwe wrong section can some mod delete dis plz. thx Edited June 1, 2008 by mmavipc [size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N Link to comment Share on other sites More sharing options...
Andreik Posted June 1, 2008 Share Posted June 1, 2008 Okay here's my problem. My AutoIt client can only connect to my AutoIt server once per every time it starts. I don't want that. I want it to be able to connet to the server multiple times. Heres my code tcpstartup() Func isserialvalid($serial) $s = "" $s = TCPConnect($ip, 5657) If $s = -1 Or @error Then MsgBox(0, $s & " | " & @error, "OMG :o THERE WAS A ERROR CONTACT ANTHRAX INTERASCTIVE IMMIDIATLY WITH ERRORID: servdown") Return 0 EndIf TCPSend($s, sen("VALID|" & $an & "|" & $serial, "wee")) $data = "" Do $data = $data & sde(TCPRecv($s, 2048),"wee") Until $data <> "" TCPCloseSocket($s) Return $data EndFunc ;==>isserialvalid Dont ask about sen or sde Please post server source code When the words fail... music speaks. Link to comment Share on other sites More sharing options...
mmavipc Posted June 1, 2008 Author Share Posted June 1, 2008 Please post server source codewhy? the server doesn't matter. The server is fine. The client can only connect to the server once every time it is run. I have not had to restart the server even once. [size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N Link to comment Share on other sites More sharing options...
Xand3r Posted June 1, 2008 Share Posted June 1, 2008 mmavipc ... it's not the client... it's the server the client looks fine Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro Link to comment Share on other sites More sharing options...
NELyon Posted June 1, 2008 Share Posted June 1, 2008 Run multiple servers on different ports, and use the client to connect to those multiple servers. It's really the only thing you can do as Autoit is a single-threaded application. I believe that's the problem. Link to comment Share on other sites More sharing options...
microbious Posted June 11, 2009 Share Posted June 11, 2009 lol he got banned ? for what ? 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