ahmed9100 Posted May 5, 2011 Share Posted May 5, 2011 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 Link to comment Share on other sites More sharing options...
smartee Posted May 5, 2011 Share Posted May 5, 2011 hi ahmed9100,There are lots of of tcp server/client examples in the example scripts section, search the forum Hope this helps-smartee Link to comment Share on other sites More sharing options...
ahmed9100 Posted May 5, 2011 Author Share Posted May 5, 2011 thx smartee ill try it and feed back thx again Link to comment Share on other sites More sharing options...
momo1984 Posted May 5, 2011 Share Posted May 5, 2011 Hi , I saw a basic TCP client server tutorial done by 403forbidden on youtube. Here is a link hope this helps :-) Link to comment Share on other sites More sharing options...
ahmed9100 Posted May 5, 2011 Author Share Posted May 5, 2011 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 Link to comment Share on other sites More sharing options...
smartee Posted May 5, 2011 Share Posted May 5, 2011 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)toTCPSend ($Socket_Data[$0][0], $Recv) does the trick -smartee Link to comment Share on other sites More sharing options...
ahmed9100 Posted May 5, 2011 Author Share Posted May 5, 2011 thx again smartee you r the man Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now