Restored from previous forum. Originally posted by ford escort.
hi
i'm writing a tcp client/server apps for filter incoming/outgoing data between a client and a server i must check in the tcp flow if the data is coming from the server or the client to process the received data and send it to the good destination ...
here's the sheme
local client ===>my app===> distant server
distant server ===>my app===> local client
"my app" acting as a server where i connect the client
but acting also as a client conected to the distant server
how can i do that in pure basic because it seem i can't
someone an idea piece of code
42...42...42...42...42...42...42...42...
don't forget a plastic bag and a towel
client/server help
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Mr.Skunk.
Hi
You described a local proxy, like the "naviscope" proxy i use to filter web pages.
In fact, i think you app have to create a server with a 127.0.0.1 local address and a specified port (81 for example in naviscope). Then add this proxy in your internet preferences under windows.
So every program that can use a proxy (most of them) can use your app.
Here is a small example how to create tcp headers requests and retreiving a web page,i think it can help you with your prog :
viewtopic.php?t=151">http://forums.pure ... .php?t=151 a web page%3F&Forum_Title=Beginners
Hope it helps...
Mr Skunk
Mr Skunk's PureBasic Web Page
<a href="http://www.skunknet.fr.st[/url]
Hi
You described a local proxy, like the "naviscope" proxy i use to filter web pages.
In fact, i think you app have to create a server with a 127.0.0.1 local address and a specified port (81 for example in naviscope). Then add this proxy in your internet preferences under windows.
So every program that can use a proxy (most of them) can use your app.
Here is a small example how to create tcp headers requests and retreiving a web page,i think it can help you with your prog :
viewtopic.php?t=151">http://forums.pure ... .php?t=151 a web page%3F&Forum_Title=Beginners
Hope it helps...
Mr Skunk
Mr Skunk's PureBasic Web Page
<a href="http://www.skunknet.fr.st[/url]