mmavipc Posted June 1, 2008 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 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
mmavipc Posted June 1, 2008 Author Posted June 1, 2008 ? what do you mean? [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
mmavipc Posted June 1, 2008 Author Posted June 1, 2008 bump [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
Moderators SmOke_N Posted June 1, 2008 Moderators Posted June 1, 2008 bumpRegardless of how important your question is to you. Please refrain from bumping your post more than once in a 24 hour period. It's rude to others that are hoping to get their questions answered by being pushed down on the list. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
mmavipc Posted June 2, 2008 Author Posted June 2, 2008 (edited) bump(it's like 1 min after 3:52(last bump) from yesterday) Edited June 2, 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
mmavipc Posted June 4, 2008 Author Posted June 4, 2008 bump [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
Richard Robertson Posted June 4, 2008 Posted June 4, 2008 So are you saying that the client will connect again after being closed and restarted, or are you saying the server only allows one connection then must be restarted?
mmavipc Posted June 4, 2008 Author Posted June 4, 2008 the client will connect again after being closed and restarted [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
Richard Robertson Posted June 4, 2008 Posted June 4, 2008 You aren't calling TcpShutdown at any point, are you?
korifg Posted June 4, 2008 Posted June 4, 2008 TCPConnect needs a corresponding TCPlisten at server side. Is there an active tcplisten when you 2nd time issue tcpconnect?
mmavipc Posted June 4, 2008 Author Posted June 4, 2008 (edited) No I'm not using tcpcshutdown Richard. and Korfig I'm using Asock.au3(it';s no the forums just search for it) Edited June 4, 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
Moderators SmOke_N Posted June 5, 2008 Moderators Posted June 5, 2008 No I'm not using tcpcshutdown Richard. and Korfig I'm using Asock.au3(it';s no the forums just search for it)See, that's not going to work. If you are asking for assistance, and you are using something that isn't standard.... Then get off your rear and post the link yourself. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
mmavipc Posted June 5, 2008 Author Posted June 5, 2008 heres the link to asock: http://www.autoitscript.com/forum/index.ph...89&hl=Asock [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
Richard Robertson Posted June 5, 2008 Posted June 5, 2008 You say you are using this wrapper, but you are also calling the built in functions yourself. Are you sure you are actually using asock?
mmavipc Posted June 6, 2008 Author Posted June 6, 2008 You say you are using this wrapper, but you are also calling the built in functions yourself. Are you sure you are actually using asock?only the server is using ASock [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
Richard Robertson Posted June 6, 2008 Posted June 6, 2008 I am afraid that without more information, I am unable to help you.
mmavipc Posted June 6, 2008 Author Posted June 6, 2008 Man this sucks then..... my head is hurting from banging on the wall trying to find the solution.... hahaha(lol) [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
mmavipc Posted July 12, 2008 Author Posted July 12, 2008 Bump can any trusted user of the forum reply to this so I can show them the full source code of the client to see if there are any problems with it? it's still returning -1 after the second connect [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
mmavipc Posted July 15, 2008 Author Posted July 15, 2008 bump [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
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