Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

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

Posted

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)

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