sandin Posted July 21, 2008 Share Posted July 21, 2008 From the help examples I can see how to send data from client to server, but how can I send data from server to client? Can someone plz show me the example? thank you. Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 Well, the term "server" is an ambiguous term. In order to send data from the "server" back to the client, the client must also be listening for TCP messages, so you have to have a block of code in the client to receive them just like in your "server" program. Regards,Josh Link to comment Share on other sites More sharing options...
sandin Posted July 21, 2008 Author Share Posted July 21, 2008 tnx for fast reply. so, I must make 2 servers on same IP and different port, and make both of them clients in the same time so both of them can send and receive data? Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 Well, if you are testing both programs on the same machine then you need to use 2 different ports, but on different machines it doesn't matter if they are different. But yes, if you want to use the term "server" for things that receive data and "client" for things that send, then yes. Regards,Josh Link to comment Share on other sites More sharing options...
sandin Posted July 21, 2008 Author Share Posted July 21, 2008 it's for communication between 2 files on same PC, so I'll use 2 different ports. Tnx for help, I'll give your method a shoot muttley Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 If its purpose is to communicate between two programs on the same PC... why are you using TCP commands? Regards,Josh Link to comment Share on other sites More sharing options...
sandin Posted July 21, 2008 Author Share Posted July 21, 2008 is there other way for them to communicate? This is my first time using something like this ;/ Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 http://www.autoitscript.com/forum/index.php?showtopic=76013Ignore me suggesting TCP muttley Regards,Josh 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