Jump to content

Recommended Posts

Posted (edited)

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

Posted (edited)

that's the only way?

darn.

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

Posted (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 :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

Posted

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

Posted

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

Posted (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 :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

Posted

hmm. ok, thanks.

Matt :lmao:

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

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
  • Recently Browsing   0 members

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