I posted a thread with the same title a while ago and someone gave me the idea to make a networked instant messaging client. Now, the thing is, I don't have any computers on a network to test my program on!
So, i was looking for some more project ideas!
A few requirements. I'm not extremely good at C so something like a huge project wouldn't be possible (if it would be possible, it wouldn't be fun). So, something that I can complete in a few weeks (with about an hour of work everyday after school) would be nice :)
I don't have any computers on a network to test my program on!
Virtual machines mate!!!! Virtial Box Free!!!! heyy now then that's nice isn't ?? ;)
network instant messaging client would be straight forward project. I would go for it.
Ok, so my brother says that I need to know more about networking before I can start this stuff (my brother basically controls all the programming I do). Any TCP/IP tutorials?
"networked instant messaging client"; you may or may not actually need to learn much about networking to do this, it totally depends on how you want to implement it. I did one in perl that was intended as a client for the "chatterbox" at perlmonks; the networking side of it was fairly simple because it was on telnet.
But if you want to write one using the internet (TCP/IP), which is probably what you want to do if you want to learn about networking, it's pretty straighforward: Look at all the tutorials you find with google, and decide for yourself which one you want to use. They tend to be fairly similiar in the sense that with C, the core concept is the "socket", and the core complication the structure of Internet Packets.
If you even have one other computer where you live, you don't even need a router, you can do stuff with a crossover ethernet cable ($5-30US); it's all the same in essence.
Alright, so I'm having lots of trouble trying to write the code. Could someone please give me some basic code like writing some data on another computer's (on the same network) port ?
There's a very good tutorial here.
Your brother might be a really smart guy, but it is up to you what you want to learn.
Originally Posted by Poincare
Abstraction is the heart of software engineering. You do NOT have to start at the lowest level in order to learn how to do useful things.
That's the one I'm using :P
Originally Posted by bithub
Anyway, I have a few questions:
Can I read/write data right from the computer I'm connected to's socket or is there something more complicated(say something like port 1212)?
If so, please provide some sample code?
I do have a couple of computers (In fact, i have 7 (5 of em I got for free!), but only 2 will work for more complicated reasons), can someone also provide some code for over the internet?