McGod Posted August 15, 2006 Share Posted August 15, 2006 Ok, I'm not sure how to go about this. I need a way to make a server that can host 7 connections. I got to the TCPAccept part, how am i suppose to accept and recv info at the same time. Also how can i go about sending info to all of them at the same time [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
Danny35d Posted August 15, 2006 Share Posted August 15, 2006 Take a look to this Post AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
McGod Posted August 15, 2006 Author Share Posted August 15, 2006 Take a look to this Post Cool, but I want to be able to send messages to specific users. $accept[$i] = TCPAccept ( $tcp[0] ) If $accept[$i] <> -1 TCPSend ( $accept[$i], "USER" ) Do Sleep (50) $acp = TCPRecv ( $accept[$i], 512) Until $acp <> -1 $accept[$i][1] = $acp $i = $i + 1 EndIf This will, check if someone is asking to accept. if someone is, it will Accept, send them USER command, wait for them to send back there username, then stick that in a variable. So If I ever wanted to message them I would use $accept[$i] and if i needed there username i would use $accept[$i][1]. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
themax90 Posted August 16, 2006 Share Posted August 16, 2006 TCPSend($ConnectedSocket[$UserArrayNumber], $Data) Check out AutoIt-ITS download page. Look for File-Based ITS. It has a personal message function. Link to comment Share on other sites More sharing options...
McGod Posted August 16, 2006 Author Share Posted August 16, 2006 TCPSend($ConnectedSocket[$UserArrayNumber], $Data) Check out AutoIt-ITS download page. Look for File-Based ITS. It has a personal message function. THis is old, i already figured it out Though i stopped using TCP because the fact to host u need to Pf (Port Forward) [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] 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