Jump to content
Sign in to follow this  
contau

Creating a listening tcp port

Recommended Posts

contau

I want to create a listening tcp port that multi users can connect.I used TCP.au3 but not complete .PLS show me some codes do this.

TCP.au3

Share this post


Link to post
Share on other sites
smartee

hi contau,

Welcome to the forum ;)

The TCPListen() function is what you're after, search for it in the help file :unsure:

Also, there are lots of of tcp server/client examples () in the example scripts section, search the forum :>

Hope this helps

-smartee

Share this post


Link to post
Share on other sites
contau

hi contau,

Welcome to the forum ;)

The TCPListen() function is what you're after, search for it in the help file :unsure:

Also, there are lots of of tcp server/client examples () in the example scripts section, search the forum :>

Hope this helps

-smartee

I need to create a listening port and wait for outside users connect to. What you show is "creating connect to an ipadress". Edited by contau

Share this post


Link to post
Share on other sites
Shanheavel

Maybe TCPListen?

$g_IP = @IPAddress2
$Port = 12345 ; Your port!
; Start The TCP Services
TCPStartUp()
$MainSocket = TCPListen($g_IP, $Port,  100 )
If $MainSocket = -1 Then Exit

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.