The link contains code where a separate thread is started for each request.
Can I use it?

Can you please explain your comment?

Thanks!

On Thu, Dec 27, 2012 at 1:33 PM, skink <psk...@gmail.com> wrote:

>
>
> Archana wrote:
> > Hi,
> >
> > Does the server in the
> >
> hc.apache.org/httpcomponents-core-ga/httpcore/examples/org/apache/http/examples/ElementalHttpServer.javawork
> > in Android?
> >
> > When I try to use the constructor,
> >
> > HttpService(HttpProcessor processor, ConnectionReuseStrategy
> connStrategy, HttpResponseFactory responseFactory,
> HttpRequestHandlerResolver handlerResolver, HttpParams params)
> >
> >
> > Eclipse says constructor is not defined. Eclipse gives a quick fix to
> > change the constructor as:
> >
> > HttpService(HttpProcessor proc, ConnectionReuseStrategy connStrategy,
> HttpResponseFactory responseFactory)
> >
> > How will I register the handler for my requests in this case?
> >
> > Thanks in advance!
> >
> >
> > On Wednesday, December 19, 2012 2:18:04 PM UTC+2, skink wrote:
> > >
> > >
> > >
> > > Archana wrote:
> > > > Hi,
> > > > I m implementing threads first. Can I use Basic HTTP server from the
> > > > link http://hc.apache.org/httpcomponents-core-ga/examples.html ?
> > > >
> > > > Can you please let me know the difference between handling blocking
> > > > requests and blocking IO(as specified in the link).
> > > >
> > > > Thanks!
> > > >
> > > >
> > > >
> > >
> > > after two minute googling I got this:
> > >
> > > http://www.oracle.com/technetwork/java/socket-140484.html
> > >
> > > why don't you use Google for a basic socket stuff that has nothing to
> > > do with android?
> > >
> > > pskink
> > >
>
> you had a working single threaded serverthat started like this:
>
> while(true){
> socket =
> serverSocket.accept();
>
> why don't you change it to the multi threaded one?
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Archana

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to