c++ - HTML Forwarding -
so i've been playing around simple html forwarding c++. haven't accomplished , have questions on backbone.
first: need use special libraries other socket libraries forward html data , connections?
second: when client connects html server, tcp connection kept open? or closed once data sent?
third: when forward data, client server, packet includes destination address. should technically able read address , connect server via port 80, keep open, , send , receive on newly opened port right? there have do? time constraints? if directly forward every single packet directly between client , server website should show correctly on client, correct?
i prefer keep external libs minimum. if necessary can expand program include required libraries.
so far i've gotten data , both parties, website not function.
[platform] :: windows.primary && posix_compliant.secondary
first: no not need other special libraries not using available extent reinventing wheel.
second: no, http connectionless protocol.
third: http session begins request header, in case sounds post. post may take more 1 package, during time connection remains open. server may time out.
you might @ libcurl if not intend using it. (the source in c, , rather monolithic commonly used).
Comments
Post a Comment