c: networking: ip deamons.

Discuss Programming
X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

Image
Basicly it relays data from client to the server.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

and im going to bed

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

X11 wrote:Image
Basicly it relays data from client to the server.
Basically what I am asking is are you doing this just for a learning experience or is there a specific need that you have? If this is just for a learning experience then press on. If you are doing this for a specific need then there are probably already ways to do what you want to do. That's why I am asking...

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

The plan was to kill two birds with one stone.

I wanted to learn

And i wanted to make a relaying program kind of thing.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

To relay what?

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

pretty much whatever is on the port (eg i set the relay to listen on port 80 and goto this site) and then when your site replys to the relays reqest the relay sends that to the client.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Oh, you mean Squid? :) As a side note I made a couple of slight modifications to the client/server example, and added another example:

http://voidmain.is-a-geek.net/files/socket/

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

i dont want somthing like squid but somthing more like iptables but it only forwards to one ip, but this has to be small and i can compile it on dos. I think i can work it out myself anyways.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

X11 wrote:i dont want somthing like squid but somthing more like iptables but it only forwards to one ip, but this has to be small and i can compile it on dos. I think i can work it out myself anyways.
Do you have TCP/IP configured and a socket library for DOS? If I knew you wanted this for DOS I wouldn't have helped you. :)

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

(yes i know of that stuff for dos)

here is a quick hack of what i want to do.
http://users.bigpond.com/tate0/c0de/serv.c

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

it was for any platform, mainly Linux but i want it small. But i could use it on DOS. or whatever if i needed.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Well without an example of the type of task you want to accomplish there isn't much incentive to go on from here. In fact it's not really possible.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

well i have almost got it working...

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

But the question I have been trying to get answered is.. "doing what?!?". The example really doesn't actually do much.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

Basicly i want somthing that does what squid does, but smaller and more portable. And simple, it doesnt use the normal proxy protocols.

Post Reply