Jump to content

Recommended Posts

Posted

hello every one

i want to do something but i cant

i want to make a server and Clint

1 - client :

send a massage to server and then wait to receive another message from server like i send "hello" then receive "hello too"

2 - server :

listen to all ip range from 10.0.0.1 - 10.0.0.255 then if any client send message like "hello" it send back "hello too"

can any one tell me how can i do that coz im not that good in auto it

Posted

hi ahmed9100,

There are lots of of tcp server/client examples in the example scripts section, search the forum :unsure:

Hope this helps

-smartee

Posted

thx smartee it works but is there any way to send the message gust to the ip who send the message not broadcasting to every one !

and thx momo1984 for ur help but im tryid to look in help file but i couldn't do what i want

Posted

is there any way to send the message gust to the ip who send the message not broadcasting to every one

At a glance it seems that changing the line

_Broadcast_To_Sockets_ ($Recv)
to
TCPSend ($Socket_Data[$0][0], $Recv)

does the trick :unsure:

-smartee

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
×
×
  • Create New...