Jump to content

TCPRecv() all IP addresses


Recommended Posts

is there any way to TCPRecv all messages sent to the computer from any IP address on a set port?

Matt :lmao:

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

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 :lmao:

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

Wouldn't AutoIt Smith's Remote Server Beta server work?

http://www.autoitscript.com/forum/index.php?showtopic=19468

As 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.

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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 :lmao:

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...