Hi all,
I've been working in C/C++ on Windows and Mac for some time now - I'm no stranger to the language. However, I'm currently working on Windows project which is meant to be peer-to-peer networking over the internet using stream sockets. I've discovered that this is not very feasable considering that some clients may be operating behind a firewall.
I can't implement a Windows based server program to process and dispatch socket messages because I would have to have a windows machine permanently hooked up to the internet which is why I wanted a peer-to-peer approach in the first place.
What I would like to do is program a small C/C++ server which will sit on my UNIX web server and process and dispatch incoming and outgoing sockets. In other words, some kind of "inbetween" to collect and forward the streams between peers.
I envisioned a small program on my UINX server with which Windows client programs would instantiate a connection by using the IP address. Then, information would be passed around to clients via the small server program.
Here's my prob - and probably a very simple one at that! - I've never programmed on UNIX before and don't even know where to start. I don't have a UNIX machine/operating system nor do I have a UNIX C/C++ compiler.
I understand that there are some options I can take here such as using a UNIX emulator and/or using GNU stuff. However, I would like to hear any suggestions/idea on this subject before I start.
Also, any info on using UNIX sockets would probably come in handy!
[sup]programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.[/sup]
I've been working in C/C++ on Windows and Mac for some time now - I'm no stranger to the language. However, I'm currently working on Windows project which is meant to be peer-to-peer networking over the internet using stream sockets. I've discovered that this is not very feasable considering that some clients may be operating behind a firewall.
I can't implement a Windows based server program to process and dispatch socket messages because I would have to have a windows machine permanently hooked up to the internet which is why I wanted a peer-to-peer approach in the first place.
What I would like to do is program a small C/C++ server which will sit on my UNIX web server and process and dispatch incoming and outgoing sockets. In other words, some kind of "inbetween" to collect and forward the streams between peers.
I envisioned a small program on my UINX server with which Windows client programs would instantiate a connection by using the IP address. Then, information would be passed around to clients via the small server program.
Here's my prob - and probably a very simple one at that! - I've never programmed on UNIX before and don't even know where to start. I don't have a UNIX machine/operating system nor do I have a UNIX C/C++ compiler.
I understand that there are some options I can take here such as using a UNIX emulator and/or using GNU stuff. However, I would like to hear any suggestions/idea on this subject before I start.
Also, any info on using UNIX sockets would probably come in handy!
[sup]programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.[/sup]