AutoIt-ITS Database Editor - Recommended for Secure Servers
The project AutoIt ITS is dead and all files can be found here : http://www.autoitscript.com/forum/index.php?showtopic=57470
ToDo List:
None.
Here is some rather "Technical" information on TCP : Click Here
Examples:
TCP Made Easy:
This can help you understand return values, and has everything on the TCP structure documented with a working example of Client/Server. TCPStartServer is highly recommended to use.
AdminDB:
A type of TCP Server that will store variables in memory allowing remote access and updating of more advanced type servers. A preset administrative password (if obfuscated) will make stealing ANY information in it near impossible. This server is used to store ITS Server data in realtime however the updated version is not released for security purposes. Converses in Hex.
Remote Server *NEW*:
Newest version support's almost ALL of AutoIt's functionality. Recommended for developer use only.
Remote Server *OLD*:
Older version of a "Remote" Server which has tons of nested pre-built functions. Recommended for home use.
Server Communicator:
Great for learning Syntax of other protocols such as POP3, SMTP, and if adapted correctly MySQL.
Optimized TCP Generic Server:
You can use this as just a BASIC background to making a server. All the code is there, and should be fully functional. Wrap your code around it and you have your own server! Highly Recommended. Update 1
TCP Client Example:
Global $MainSocket Local $MaxLength = 512; Maximum Length Of Text Local $Port = 1000; Port Number Local $Server = @IPAddress1; Server IpAddress TCPStartup() $MainSocket = TCPConnect($Server, $Port) If $MainSocket = -1 Then Exit MsgBox(16, "Error", "Unable to connect.") While 1 $Data = TCPRecv($MainSocket, $MaxLength) If $Data = "~bye" Then MsgBox(16, "Session Ended", "Connection Terminated.") Exit ElseIf $Data <> "" Then ; Unconditional Receive MsgBox(0, "Received Packet", $Data) EndIf WEnd Func OnAutoItExit() If $MainSocket <> - 1 Then TCPSend($MainSocket, "~bye") TCPCloseSocket($MainSocket) EndIf TCPShutdown() EndFunc;==>OnAutoItExit
TCP Server Example:
Global $MainSocket = -1 Global $ConnectedSocket = -1 Local $MaxConnection = 1; Maximum Amount Of Concurrent Connections Local $MaxLength = 512; Maximum Length Of String Local $Port = 1000; Port Number Local $Server = @IPAddress1; Server IpAddress TCPStartup() $MainSocket = TCPListen($Server, $Port) If $MainSocket = -1 Then Exit MsgBox(16, "Error", "Unable to intialize socket.") While 1 $Data = TCPRecv($ConnectedSocket, $MaxLength) If $Data = "~bye" Then MsgBox(16, "Session Ended", "Connection Terminated.") Exit ElseIf $Data <> "" Then ; Unconditional Receive MsgBox(0, "Received Packet", $Data) EndIf If $ConnectedSocket = -1 Then $ConnectedSocket = TCPAccept($MainSocket) If $ConnectedSocket <> -1 Then ; Someone Connected TCPSend($ConnectedSocket, "Connected!") EndIf EndIf WEnd Func OnAutoItExit() If $ConnectedSocket <> - 1 Then TCPSend($ConnectedSocket, "~bye") TCPCloseSocket($ConnectedSocket) EndIf If $MainSocket <> -1 Then TCPCloseSocket($MainSocket) TCPShutdown() EndFunc;==>OnAutoItExit
You can also check my fileman at the below address for examples and random scripts I make. Please note : If a forum post is out of date, check the file man. All scripts are in there, however some may not be updated to work in the current release or beta.
http://www.autoitscript.com/fileman/users/AutoIt%20Smith/
AutoIt Smith
Updated July 27th, 2006
Edited by AutoIt Smith, 18 November 2007 - 08:57 PM.





