Implementing an Http layer over a TCP/IP Socket

  • Thread starter Thread starter Giulio Petrucci
  • Start date Start date
G

Giulio Petrucci

Hi there,

I need to implement a light Http layer over a TCP/IP Socket as I have to
create an application running on FW1.1 (so I cannot use the HttpListener
class :-( ). Which approach would you use?

1) The socket reads all the data; after that it converts the read bytes
into a string andd create an HttpRequest (designed ad hoc to parse the
request data that my client will send);
2) An HttpRequest class is created and the Socket is passed as an
argument to its constructor; the constructor reads from the
Socket....and so on...
3) HttpRequest inherist from Socket.

Any suggestion would be appreciated.
Thanks in advance,
Giulio - Italia

--
 
Hello, Giulio!

Have a look at Cassini (
http://blogs.msdn.com/dmitryr/archive/2005/09/27/474534.aspx )
It is lightweight http server. (sources are available)

You wrote on Mon, 12 Mar 2007 13:15:39 +0100:

GP> I need to implement a light Http layer over a TCP/IP Socket as I have
GP> to create an application running on FW1.1 (so I cannot use the
GP> HttpListener class :-( ). Which approach would you use?

GP> 1) The socket reads all the data; after that it converts the read bytes
GP> into a string andd create an HttpRequest (designed ad hoc to parse the
GP> request data that my client will send);
GP> 2) An HttpRequest class is created and the Socket is passed as an
GP> argument to its constructor; the constructor reads from the
GP> Socket....and so on...
GP> 3) HttpRequest inherist from Socket.

GP> Any suggestion would be appreciated.
GP> Thanks in advance,
GP> Giulio - Italia


With best regards, Vadym Stetsyak.
Blog: http://vadmyst.blogspot.com
 
C# doesn't support TCP/IP.

Sorry.

I think that the next version will; it should be out next month.

-Todos
 
Back
Top