Slaiochi Posted April 2, 2007 Share Posted April 2, 2007 (edited) I'm trying to make a server that will take an inbound connection request and transfer that request to a different server. Client V Log-in Server V Game Server That's pretty much what I'm trying to accomplish, but haven't found a way to do this in AutoIt yet. Any help is appreciated Edited April 2, 2007 by Slaiochi Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted April 2, 2007 Share Posted April 2, 2007 I'm trying to make a server that will take an inbound connection request and transfer that request to a different server.Client VLog-in ServerVGame ServerThat's pretty much what I'm trying to accomplish, but haven't found a way to do this in AutoIt yet. Any help is appreciated try consolewrite/sdtread, or tcpsend to the other server. Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
Slaiochi Posted April 2, 2007 Author Share Posted April 2, 2007 sdtread? my AutoIt doesnt have that function o.o Also, I have a basic grasp of the network commands, I just need a little sample code to understand them better. Link to comment Share on other sites More sharing options...
Slaiochi Posted April 3, 2007 Author Share Posted April 3, 2007 I know this is wrong, or it'd work but here's what i have thus far. Global $LogIn_IP = "127.0.0.1" TCPStartup() $LogIn_Port = TCPListen($LogIn_IP,2610) GUICreate("LodE Server v0.1a",400,200) $Traffic = GUICtrlCreateEdit("",15,15,370,170) If $LogIn_Port = -1 Then Exit GUISetState() While 1 GUICtrlSetData($Traffic,"Listening for Connections at: " & $LogIn_Port & @CRLF,1) TCPConnect($LogIn_IP,$LogIn_Port) TCPSend($LogIn_Port,"~SERVER CONNECTED") Sleep(100) WEnd Link to comment Share on other sites More sharing options...
The Kandie Man Posted April 3, 2007 Share Posted April 3, 2007 Look at the examples in the help file for TCPSend and TCPRecv. The TCPRecv example is a fully functional server and the TCPSend example is a fully functional client. "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
Slaiochi Posted April 3, 2007 Author Share Posted April 3, 2007 I already have a Game Loopback Client, I'm trying to make a private server for. And the client has to be redirected by the server to a different port, that's the part I'm stuck on right now. The client connects to the server, but says "Waiting for reply from server..." that message is the one where it's waiting for the redirect from port 2610 to 2615. All I need to know is how to redirect the inbound port to a different one. 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