473,769 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Implementing an Http layer over a TCP/IP Socket

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

--
Mar 12 '07 #1
3 2867
Hello, Giulio!

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

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

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

GP1) The socket reads all the data; after that it converts the read bytes
GPinto a string andd create an HttpRequest (designed ad hoc to parse the
GPrequest data that my client will send);
GP2) An HttpRequest class is created and the Socket is passed as an
GPargument to its constructor; the constructor reads from the
GPSocket....and so on...
GP3) HttpRequest inherist from Socket.

GPAny suggestion would be appreciated.
GPThanks in advance,
GPGiulio - Italia
With best regards, Vadym Stetsyak.
Blog: http://vadmyst.blogspot.com
Mar 12 '07 #2
Hi Vadym,

Vadym Stetsyak ha scritto:
Have a look at Cassini (
http://blogs.msdn.com/dmitryr/archiv...27/474534.aspx )
It is lightweight http server. (sources are available)
Thanks for the suggestion.
Actually I must confess that I've started my project reading Cassini's
source! ;-) Anyway, it's a lightweight but *full* webserver, while I'd
need a more "minimale" approach. Anyway thansk for the suggestion!

Ciao,
Giulio

--
Mar 13 '07 #3
C# doesn't support TCP/IP.

Sorry.

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

-Todos

Mar 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2648
by: darrel | last post by:
Has anyone built a tagging system for their .net application akin to way flickr or del.icio.us implement it? We're building an internal CMS and all of the structured content will be organized into categories (basically, folders of information). This is needed to create a specific structure to all the content being entered. However, I'm seeing some benefit of also implementing a tagging system for each individual bit of content. This...
8
5695
by: Roodie | last post by:
Hello, I have a quite specific problem, and after half a day spent with Google, still no solid answer. The task: I have to write a C# class Library ( DLL ) to handle TCP socket communication. It will be called by a multithreaded server application to send some data to an another server ( which is a linux server ).
2
2700
by: Sridhar | last post by:
Hi, I am trying to implement sql transactions. But I am not knowing how to do that. I created a data access layer which contains methods to select/insert/update tables in a database. I have also created a business logic layer to retrieve/update the data from the data access layer. All of this is working fine if there are no transactions involved. If I need to use transactions, I am not knowing how to do that. Lets say I have a webform...
6
3990
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public string UID; public string PWD; }
4
3111
by: alisonken1 | last post by:
Hello all - I'm looking at trying to write a python script to connect to a layer 2 bridge (no IP available). Looking at the sockets function, it's not clear if I can connect using only the mac address - it appears to want either a broadcast address or a specific IP address. Can anyone give me a clue on opening a layer 2 socket in Python?
21
5671
by: puzzlecracker | last post by:
Problem: I send a lot of requests to the application (running on a different box, of course), and I receive back responses from the app . Below: socket corresponds to Socket socket=new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9857
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.