theguy0000 Posted January 20, 2006 Posted January 20, 2006 (edited) is there any way to TCPRecv all messages sent to the computer from any IP address on a set port?Matt Edited January 21, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
MSLx Fanboy Posted January 20, 2006 Posted January 20, 2006 I would believe that you have to iterate each address, and create a socket on each. Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
theguy0000 Posted January 20, 2006 Author Posted January 20, 2006 (edited) that's the only way?darn.Matt Edited January 21, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
theguy0000 Posted January 21, 2006 Author Posted January 21, 2006 (edited) there must be a way to do this.a client program, which will run on any computer, sends messages via tcp to the server program, on my computer, running 24/7.isn't there any way for the server to recieve and interpret all recieved messages?Matt Edited January 21, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
greenmachine Posted January 21, 2006 Posted January 21, 2006 Wouldn't AutoIt Smith's Remote Server Beta server work? http://www.autoitscript.com/forum/index.php?showtopic=19468As far as I can tell, the server can hold up to 100 connections (pending connections?) as is, each socket being part of an array. All you have to do is have the client, and connect it to the server.... I don't see why that wouldn't work.
themax90 Posted January 21, 2006 Posted January 21, 2006 You can use this and by editing MaxConnections you can get more then 100, and it allows $MaxConnections in the amount the can be concurrently connected. AutoIt Smith
greenmachine Posted January 21, 2006 Posted January 21, 2006 Is it really the number of connections? Or is it actually pending connections as the helpfile says. TCPListen ( IPAddr, port [, MaxPendingConnection] ) MaxPendingConnection: Maximum length of the queue of pending connections. By default the maximun reasonable value will be set. That sure makes it sound like only one can be connected at a time, with up to 99 waiting to connect (for a total of 100).
theguy0000 Posted January 21, 2006 Author Posted January 21, 2006 (edited) ok from that code: Func TCPStartServer($Port, $MaxConnect = 1) Local $Socket $Socket = TCPStartup() Select Case $Socket = 0 SetError(@error) Return -1 EndSelect $Socket = TCPListen(@IPAddress1, $Port, $MaxConnect) Select Case $Socket = -1 SetError(@error) Return 0 EndSelect SetError(0) Return $Socket EndFunc;==>TCPStartServer That means it is TCPListen()-ing to your own IP address right? How does that accomplish this? Matt Edited January 21, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
greenmachine Posted January 21, 2006 Posted January 21, 2006 I believe that would be listening ON your own IP address. It works, I use it.
theguy0000 Posted January 21, 2006 Author Posted January 21, 2006 hmm. ok, thanks. Matt The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
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