From: Dustin W. <dus...@ya...> - 2011-04-28 04:05:18
|
We're attempting to use the OpaqueInterface however the server doesn't appear to be receiving the data. Is OpaqueInterface a known working interface? TIA, Dustin |
From: Jorge S. S. <jsa...@gm...> - 2011-04-28 08:50:09
|
Sorry, OpaqueInterface is not implemented by now; it is just an skeleton that you should extend to provide the appropriate functionality for your device. I will implement OpaqueInterface as soon as I have enough time. Until then, you can take a look to the deprecated interface MCom; most of the Opaque functionality is implemented there, I think. Best regards, Jorge 2011/4/28 Dustin Webb <dus...@ya...>: > We're attempting to use the OpaqueInterface however the server doesn't > appear to be receiving the data. Is OpaqueInterface a known working > interface? > > TIA, > Dustin > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > |
From: Dustin W. <dus...@ya...> - 2011-05-13 04:17:06
Attachments:
opaque.diff
|
/* * Player Java Client 3 - PlayerOpaqueData.java * Copyright (C) 2006 Radu Bogdan Rusu, Dustin Webb * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * */ package javaclient3.structures.opaque; import javaclient3.structures.*; /** * Data: state (PLAYER_OPAQUE_DATA_STATE) * The opaque interface returns a byte array. * @author Radu Bogdan Rusu, Dustin Webb * @version * <ul> * <li>v3.0 - Player 3.0 supported * </ul> */ public class PlayerOpaqueData implements PlayerConstants { // the data [d] private byte[] data; /** * @return number of data points */ public synchronized int getData_count () { return (this.data == null)?0:data.length; } /** * @return the data [d] */ public synchronized byte[] getData () { return this.data; } /** * @param newData the data [d] */ public synchronized void setData (byte[] newData) { this.data = newData; } } |
From: Jorge S. S. <jsa...@gm...> - 2011-05-14 19:11:20
|
Thank you very much, Dustin. I have completed and committed the code, but I did´t test the interface, so be cautious when using it at the beginning! In particular, I read/ write twice the data_count integer, as in other arrays, but I´m not sure if that must be the case in OpaqueInterface, so the first time you use the interface, ensure that the first four bytes are real user-defined data and not the data_count value. Dustin, I followed the thread you started in player-users about this interface and I agree with your final conclusion. Jorge 2011/5/13 Dustin Webb <dus...@ya...>: > Jorge: > I think I have the OpaqueInterface working. I had to modify 3 files and make > 1. I modified: > javaclient3/OpaqueInterface.java > javaclient3/PlayerClient.java > javaclient3/structures/PlayerConstants.java > These changes are in the attached opaque.diff. > > I made: > javaclient3/structures/opaque/PlayerOpaqueData.java > It is also attached. > > While I have had one other peer review it it would be helpful if someone > more familiar with the project like yourself could do so. > HTH, > Dustin > > ________________________________ > From: Jorge Santos Simón <jsa...@gm...> > To: jav...@li... > Sent: Thursday, April 28, 2011 2:50 AM > Subject: Re: [Java-player-users] OpaqueInterface > > Sorry, OpaqueInterface is not implemented by now; it is just an > skeleton that you should extend to provide the appropriate > functionality for your device. > > I will implement OpaqueInterface as soon as I have enough time. > > Until then, you can take a look to the deprecated interface MCom; most > of the Opaque functionality is implemented there, I think. > > Best regards, > Jorge > > 2011/4/28 Dustin Webb <dus...@ya...>: >> We're attempting to use the OpaqueInterface however the server doesn't >> appear to be receiving the data. Is OpaqueInterface a known working >> interface? >> >> TIA, >> Dustin >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> Java-player-users mailing list >> Jav...@li... >> https://lists.sourceforge.net/lists/listinfo/java-player-users >> >> > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Java-player-users mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-player-users > > |