Re: Can someone provide http client example

2007-09-05 Thread tedc
Hi Jeff: Thanks for your help. Now I can send the http request to server, but I recevie the request error from yahoo. And how can I send the query string to Google. Thanks for your help. Ted jgenender wrote: Hi Ted, A good example of how to use it is in AsyncHttpClientTest.java. The

Re: Can someone provide http client example

2007-09-05 Thread Mark
you will need to a little bit of reverse engineering to see how google/yahoo places the search criteria into the url. BTW, I am working on some examples that I will be placing into the examples sub-project. Gimme another day or 2 and will have some stuff. I would like to get a wget-like program

Re: change default endian?

2007-09-05 Thread mat
Try this message.order(ByteOrder.LITTLE_ENDIAN) ; On 9/5/07, Sungwon Jung [EMAIL PROTECTED] wrote: ah, sorry. default is BIG_ENDIAN. I'm mistake. :-) On 9/5/07, mat [EMAIL PROTECTED] wrote: I believe Java always uses BIG_ENDIAN. So does underlayer TCP communication. On 9/5/07,

[jira] Commented: (DIRMINA-432) IoService method for writing Object to all the managed IoSession

2007-09-05 Thread Julien Vermillard (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525080 ] Julien Vermillard commented on DIRMINA-432: --- The WriteFuture write(Object messsage); can be placed in

Re: P2P Audio / Video streaming

2007-09-05 Thread Adam Fisk
Don't you still need to write it in some form of blocks, though? What would you do with raw UDP sockets that would be any different? On 9/5/07, Pat Chang - 1973 [EMAIL PROTECTED] wrote: Hi Friends, We are planning to build a P2P audio / video, client / server application. The question is:

[jira] Created: (DIRMINA-433) Http codec needs to properly handle the Host header

2007-09-05 Thread Jeff Genender (JIRA)
Http codec needs to properly handle the Host header --- Key: DIRMINA-433 URL: https://issues.apache.org/jira/browse/DIRMINA-433 Project: MINA Issue Type: Bug Components: Filter

Re: Can someone provide http client example

2007-09-05 Thread Jeff Genender
Hi Ted, Yep...the error is a bug on how he handle the Host header. I opened a JIRA and attached a patch to fix it. https://issues.apache.org/jira/browse/DIRMINA-433 Thanks, Jeff tedc wrote: Hi Jeff: Thanks for your help. Now I can send the http request to server, but I recevie the request

[jira] Updated: (DIRMINA-433) Http codec needs to properly handle the Host header

2007-09-05 Thread Jeff Genender (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Genender updated DIRMINA-433: -- Attachment: DIRMINA-433.jgenender.patch Http codec needs to properly handle the Host header

[jira] Created: (DIRMINA-434) Cookies need to handle domain

2007-09-05 Thread Jeff Genender (JIRA)
Cookies need to handle domain - Key: DIRMINA-434 URL: https://issues.apache.org/jira/browse/DIRMINA-434 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M1

[jira] Updated: (DIRMINA-434) Cookies need to handle domain

2007-09-05 Thread Jeff Genender (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeff Genender updated DIRMINA-434: -- Attachment: DIRMINA-434.jgenender.patch Cookies need to handle domain

Serverside shutdown

2007-09-05 Thread threadMaven
Hey all, I thought I would re-post this question again, seeing that I have now gone deeper into it and can explain myself a little better.^--^ so here we go. The code below is an extension of the TimeServer example in the documentation. I've simply mashed it with the Configuring Thread

Re: P2P Audio / Video streaming

2007-09-05 Thread Pat Chang - 1973
I think streaming the data over UDP is the solution. I am not too sure how to do it with Mina though! Block wise of shooting data will probably deteriorate the performance down and may not be the optimal way to do it. I think Java provides a interesting way to do the audio / video streaming.

httpclient code and Multiple Branches in One Eclipse Workspace

2007-09-05 Thread Mark
I just performed the following steps for setting up a mina development environment: http://mina.apache.org/developer-guide.html#DeveloperGuide-WorkingwithMultipleBranchesinOneEclipseWorkspace The following subprojects are not in eclipse: mina-protocol-client-http mina-protocol-server-http

Re: Serverside shutdown

2007-09-05 Thread threadMaven
My Solution? I wrapped the instantiation of the class below, TimeServer, in another class called ServerShell. who knows apache?? :) ServerShell creates a pid file on the file system then starts the TimeServer via its runServer() method which creates the acceptor, executor, loads the filters

Re: Serverside shutdown

2007-09-05 Thread Rob Butler
The filter approach has several problems. 1) you would be re-registering your IoAcceptor multiple times un-necessarily. 2) If you hadn't received any requests on an IoAcceptor it wouldn't be registered for shutdown. A better approach would be to use an observer pattern.

Re: Can someone provide http client example

2007-09-05 Thread Mark
I just checked in the wget class. Find it in org.apache.mina.example.httpclient.Wget On 9/5/07, Mark [EMAIL PROTECTED] wrote: you will need to a little bit of reverse engineering to see how google/yahoo places the search criteria into the url. BTW, I am working on some examples that I

Re: two processes listening on same port

2007-09-05 Thread Mark
I updated the quick start guide. Updates should be visible in the next hour or so. On 9/5/07, hezjing [EMAIL PROTECTED] wrote: Do you think we should remove setReuseAddress(true) from the Quick Start Guide? see http://mina.apache.org/quick-start-guide.html On 9/3/07, Trustin Lee [EMAIL

Re: P2P Audio / Video streaming

2007-09-05 Thread Norman Maurer
Hi, maybe its a bit diffrent but I wrote a TCPSoundStreamer with MINA. I use BARIX Hardware on the other side which handle raw TCP Streams and stream the mp3 via MINA as client. I use the StreanerWriteFilter to stream the mp3 ( which is stored in mysql). If you have concrete questions just