Re: [Simpleweb-Support] Support for http over UDP, bluetooth...
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2010-12-11 00:07:15
|
Hi, I have never heard of an implementation of HTTP over UDP? If you do not have access to TCP then its possible. However, you would simply be implementing transmission control over UDP, which is pretty much going to be similar to TCP. I think you would be best implementing a new Transport, although you could probably try to adapt the SocketChannel to implement your protocol. I am sure you could find examples of such attempts from googling it? Regards, Niall --- On Fri, 10/12/10, Laurent Marchal <lma...@sm...> wrote: > From: Laurent Marchal <lma...@sm...> > Subject: [Simpleweb-Support] Support for http over UDP, bluetooth... > To: sim...@li... > Received: Friday, 10 December, 2010, 11:51 AM > Hi, > > First thanks for creating this > project, this is really cool, clean > and powerful. > I just have a question : is it possible tu use something > else than > TCP/IP to communicate ? Like a BluetoothSocket / > BluetoothServerSocket ? > > The server behavior a little bit different from what I have > seen > usually. You can create a server with few lines of code : > > Connection connection = new > SocketConnection(new Controller()); > SocketAddress address = new > InetSocketAddress(port); > connection.connect(address); > > What would be the best way to support another protocol ? > implement a new > SocketAddress, a new Server or Transport ? > > Thanks for your help. > > Laurent. > > > > ------------------------------------------------------------------------------ > Oracle to DB2 Conversion Guide: Learn learn about native > support for PL/SQL, > new data types, scalar functions, improved concurrency, > built-in packages, > OCI, SQL*Plus, data movement tools, best practices and > more. > http://p.sf.net/sfu/oracle-sfdev2dev > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |