Sign in to follow this  
Followers 0
McGod

TCP

5 posts in this topic

Ok, I'm not sure how to go about this. I need a way to make a server that can host 7 connections. I got to the TCPAccept part, how am i suppose to accept and recv info at the same time. Also how can i go about sending info to all of them at the same time

Share this post


Link to post
Share on other sites



Take a look to this Post

Cool, but I want to be able to send messages to specific users.

$accept[$i] = TCPAccept ( $tcp[0] )
    If $accept[$i] <> -1
    TCPSend ( $accept[$i], "USER" )
    Do
    Sleep (50)
    $acp = TCPRecv ( $accept[$i], 512)
Until $acp <> -1
$accept[$i][1] = $acp
$i = $i + 1
EndIf

This will, check if someone is asking to accept. if someone is, it will Accept, send them USER command, wait for them to send back there username, then stick that in a variable. So If I ever wanted to message them I would use $accept[$i] and if i needed there username i would use $accept[$i][1].

Share this post


Link to post
Share on other sites

TCPSend($ConnectedSocket[$UserArrayNumber], $Data)

Check out AutoIt-ITS download page. Look for File-Based ITS. It has a personal message function.

Share this post


Link to post
Share on other sites

TCPSend($ConnectedSocket[$UserArrayNumber], $Data)

Check out AutoIt-ITS download page. Look for File-Based ITS. It has a personal message function.

THis is old, i already figured it out :P

Though i stopped using TCP because the fact to host u need to Pf (Port Forward)

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