Sign in to follow this  
Followers 0
contau

Creating a listening tcp port

5 posts in this topic

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



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

#3 ·  Posted (edited)

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

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

Thank you

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  
Followers 0