PDA

View Full Version : wattcp and tcp/ip control



Ron
October 13th, 2002, 03:55 PM
Girder just uses a standard TCP/IP connection. You can test stuff out with a telnet program.


Settings dialog
Enable the tcp/ip plugin
Add you local ip to the accept list
F9 enable all plugins

Now the plugin is running

Take a normal telnet program and:

telnet 131.155.224.4 1024 ( fill in your own ip ofcourse)
Girder will respond with "2: Welcome to the Girder 3.0 TCP/IP interface Please enter password"
Now you type "pass girder" (the characters aren't echoed)

Give it a try, i have an example program if you are interested, but no cheating for school :D

Regards,
Ron

Ron
October 13th, 2002, 03:55 PM
The example is written using native Win32 winsock api,.. very similar to BSD sockets api. This isn't hard to grasp at all, but a wrapper library is always handy ofcourse. Send me an email with a short request and i'll send you the program.

bhoule
October 13th, 2002, 03:55 PM
Are there any programmers that have used wattcp to send commands to girder over a network? I'm trying to do this in my school project, but this is the first time I've ever written a program with networking. I'm not sure of what kind of connection I should create and how to send messages.

If anyone has done this before, please share your results and how you did it.

For those who don't know, wattcp is a library which will act like a TCP/IP stack in your dos programs.

bhoule
October 13th, 2002, 03:55 PM
I am using a touchscreen computer about the size of a shoebox in a way similar to the Philips Pronto remote control. When you press the buttons on the screen, it will send the message over the network to the computer running girder to control such things as DVD, MP3, TV, Radio, and X10. I might even get around to adding mouse support, kind of like how they have the touchpads on laptops.

Of course no cheating for school! This is actually an Independent Study, so I make my own rules.

That being said, I actually would like to see your example program. What I'm interested in learning about are the steps required to initiate the connection and then to send the data.

Did you write the example program with wattcp or with some other library?

Thanks,
Brendan