beepcore-java-users Mailing List for Java BEEP Core (Page 6)
Status: Beta
Brought to you by:
huston
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(24) |
Feb
(3) |
Mar
(18) |
Apr
(2) |
May
(11) |
Jun
(6) |
Jul
(11) |
Aug
(37) |
Sep
(22) |
Oct
(11) |
Nov
(11) |
Dec
(29) |
2003 |
Jan
(8) |
Feb
(4) |
Mar
(19) |
Apr
(13) |
May
(16) |
Jun
(15) |
Jul
(2) |
Aug
(1) |
Sep
(1) |
Oct
(7) |
Nov
(13) |
Dec
|
2004 |
Jan
(1) |
Feb
(4) |
Mar
(2) |
Apr
|
May
(3) |
Jun
(2) |
Jul
(8) |
Aug
|
Sep
(7) |
Oct
(15) |
Nov
(8) |
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
(6) |
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
(5) |
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Paul A. <paa...@ci...> - 2003-05-29 14:44:52
|
Hi, I've got a bunch of questions about tuning profiles. I'll send each in a separate message to keep things simple. This is the first :-) I'm writing a SASL/DIGESTMD5 tuning profile and am trying to work out how TuningProfile is supposed to be used. It has a bunch of methods (begin, complete and abort) that none of the exisitng tuning profiles actually use - in fact SASLAnonymousProfile says it uses them, but it doesn't. TuningProfile also has an implementation of startChannel - am I supposed to call that from my own implementation? - Paul Andrews |
From: Huston <hu...@us...> - 2003-05-26 17:01:26
|
On Sun, 2003-05-25 at 23:41, Walt Stoneburner wrote: > "Grant Wood" <grant@na...> writes: > > When I do this, the listener on my "server" calls startChannel() so I > > assume the session is getting established fine. Everything hangs at > > this point without any errors. > > Huston / Grant, > > I've just spent the last few hours debugging the identical symptoms > using the latest beepcore-0.9.07.tgz on OS X using JRE 1.4.1_01. > > In my code, startChannel(), from the StartChannelListener interface, > has one job to do: > channel.setMessageListener(this); > > It is this function that hangs, not startChannel(). > > Stepping through the implementation shows that this call invokes > org.beepcore.beep.code.Channel.setMessageListener() with one > argument: ml. > > setMessageListener then turns around and immediately invokes the > PROTECTED signature of the same function, > org.beepcore.beep.core.Channel.setMessageListener(), although it > now takes two arguments: ml and blocking. > > blocking is set to true. > > When I step forward, getMessageListener() is called, which > ...sometimes it hangs indefinitely. > ...sometimes causes Java to report an array index out of bounds. > ...sometimes it proceeds to ThreadedMessageListener(). > > If I intercept the thread of execution _before_ setMessageListener() > is invoked and coerce the argument blocking to false via the debugger, > the code seems to proceed without hanging. > > > What's curious is that setMessageListener(ml) always invokes > setMessageListener(ml,blocking) with blocking set to true. To the > best > of my limited knowledge, the conditional code always executes the > positive > conditional path in Channel.java. > > Hope this helps in unwraveling Grant's mystery hang (and mine too). > > -Walt Stoneburner, <wl...@ww...> Walt, Thanks for the help in debugging this. The one case where blocking is set to false is for channel zero. In looking at the code I'm not sure how this could happen. I could see a runtime exception like ClassCastException or NullPointerException being thrown if something went wrong. But I don't see how it could hang or throw index out of bounds. I guess it could be a problem with the jvm/jre, which would normally surprise me but I can't think of anything else that would produce this behavior. I'm willing to apply patches or make changes that are necessary to make this work but unfortunately I need someone else to help with the debugging work since I can't reproduce this problem. FWIW, I'm in the process of cleaning up the frame delivery code which will remove most of the code in question, including ThreadedMessageListener. --Huston |
From: Walt S. <wl...@ww...> - 2003-05-26 05:41:54
|
"Grant Wood" <grant@na...> writes: > When I do this, the listener on my "server" calls startChannel() so I > assume the session is getting established fine. Everything hangs at > this point without any errors. Huston / Grant, I've just spent the last few hours debugging the identical symptoms using the latest beepcore-0.9.07.tgz on OS X using JRE 1.4.1_01. In my code, startChannel(), from the StartChannelListener interface, has one job to do: channel.setMessageListener(this); It is this function that hangs, not startChannel(). Stepping through the implementation shows that this call invokes org.beepcore.beep.code.Channel.setMessageListener() with one argument: ml. setMessageListener then turns around and immediately invokes the PROTECTED signature of the same function, org.beepcore.beep.core.Channel.setMessageListener(), although it now takes two arguments: ml and blocking. blocking is set to true. When I step forward, getMessageListener() is called, which ...sometimes it hangs indefinitely. ...sometimes causes Java to report an array index out of bounds. ...sometimes it proceeds to ThreadedMessageListener(). If I intercept the thread of execution _before_ setMessageListener() is invoked and coerce the argument blocking to false via the debugger, the code seems to proceed without hanging. What's curious is that setMessageListener(ml) always invokes setMessageListener(ml,blocking) with blocking set to true. To the best of my limited knowledge, the conditional code always executes the positive conditional path in Channel.java. Hope this helps in unwraveling Grant's mystery hang (and mine too). -Walt Stoneburner, <wl...@ww...> |
From: Marshall R. <mr...@db...> - 2003-05-16 21:04:33
|
> Apply the attached patch to the beepcore sources first. Then grab > tunnel.tgz from our project page at > http://sourceforge.net/projects/beep-tunnel > > You can find much more information from our homepage at > http://beep-tunnel.sourceforge.net/ including the results > of our interoperability testing. hi. any chance you could go over to http://beepcore.org/ and register your project? thanks, /mtr |
From: Rick F. <ri...@cs...> - 2003-05-16 18:47:31
|
Apply the attached patch to the beepcore sources first. Then grab tunnel.tgz from our project page at http://sourceforge.net/projects/beep-tunnel You can find much more information from our homepage at http://beep-tunnel.sourceforge.net/ including the results of our interoperability testing. -rick On Fri, 16 May 2003, Harsh Daharwal wrote: > How are we doing on Tunnel Profile? > -- > Harsh Daharwal > IOS Networks Inc. > http://www.iosnetworks.com > > -Original Message--------------- > > From: Harsh Daharwal <hdaharwal@io...> > Tunnel Profile > 2003-03-08 13:27 > Huston, > > Is Tunnel Profile implemented into beepcore? If not, is there > any plan for doing so? > > I'm trying to solve a peer to peer communication issue when peers > are behind NATs/Firewalls. Tunnel Profile is one of things I'm > looking at, although it does not solve the problem completely. > > Regards, > -- > Harsh Daharwal > IOS Networks Inc. > http://www.iosnetworks.com > > > From: Tunnel Team <aero02b@cs...>.hmc.edu> > Re: Tunnel Profile > 2003-03-08 14:08 > On Sat, Mar 08, 2003 at 03:32:29PM -0600, Harsh Daharwal wrote: > > Huston, > > > > Is Tunnel Profile implemented into beepcore? If not, is there > > any plan for doing so? > > > > I'm trying to solve a peer to peer communication issue when peers > > are behind NATs/Firewalls. Tunnel Profile is one of things I'm > > looking at, although it does not solve the problem completely. > > > > Regards, > > -- > > Harsh Daharwal > > IOS Networks Inc. > > http://www.iosnetworks.com > > > > Hi, > > The Tunnel Profile for beepcore-Java is currently under development. > We are working hard to get something working. Expect something more solid > around May of this year. > > -- > ---------------------------- > | Nick Hertl | > | Harvey Mudd College | > | Aerospace Clinic Manager | > ---------------------------- > > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Beepcore-java-users mailing list > Bee...@li... > https://lists.sourceforge.net/lists/listinfo/beepcore-java-users > |
From: Harsh D. <hda...@io...> - 2003-05-16 14:12:36
|
How are we doing on Tunnel Profile? -- Harsh Daharwal IOS Networks Inc. http://www.iosnetworks.com -Original Message--------------- From: Harsh Daharwal <hdaharwal@io...> Tunnel Profile 2003-03-08 13:27 Huston, Is Tunnel Profile implemented into beepcore? If not, is there any plan for doing so? I'm trying to solve a peer to peer communication issue when peers are behind NATs/Firewalls. Tunnel Profile is one of things I'm looking at, although it does not solve the problem completely. Regards, -- Harsh Daharwal IOS Networks Inc. http://www.iosnetworks.com From: Tunnel Team <aero02b@cs...>.hmc.edu> Re: Tunnel Profile 2003-03-08 14:08 On Sat, Mar 08, 2003 at 03:32:29PM -0600, Harsh Daharwal wrote: > Huston, > > Is Tunnel Profile implemented into beepcore? If not, is there > any plan for doing so? > > I'm trying to solve a peer to peer communication issue when peers > are behind NATs/Firewalls. Tunnel Profile is one of things I'm > looking at, although it does not solve the problem completely. > > Regards, > -- > Harsh Daharwal > IOS Networks Inc. > http://www.iosnetworks.com > Hi, The Tunnel Profile for beepcore-Java is currently under development. We are working hard to get something working. Expect something more solid around May of this year. -- ---------------------------- | Nick Hertl | | Harvey Mudd College | | Aerospace Clinic Manager | ---------------------------- |
From: Huston <hu...@us...> - 2003-04-22 04:57:10
|
All, I have started to do some spring cleaning on the beepcore-java library. I checked in the first set of changes this morning. The first pass is targeted at cleaning up the interface to make the library easier to use and understand. There will be a few more changes to the interface but this was a good point to check-in the first changes and get feedback from people using the library. As you will notice I've replaced several of the public classes with interfaces. I hope this will make it easier for people to test there code using methods like moc-objects. Once this is complete I'm planning on doing some cleanup on the internals as well. --Huston |
From: Huston <hu...@us...> - 2003-04-17 14:12:55
|
On Wed, 2003-04-16 at 15:10, Paul Andrews wrote: > Could someone tell me what the role of SessionCredential is in the Java > beepcore library? In particular, is it intended as a means of providing > credentials to a session that can be used by a client-peer when > initiating a session/channel? Or is it just a means of reporting > credentials that were obtained some other way when a session/channel was > initiated? SessionCredential was suppose to be a generic mechanism used by tuning profiles for storing credential information once authentication finished. At the time we didn't know about the Subject/Principal classes which is what we should have used. I would like to change to using Subject/Principal instead but I haven't had the time to verify what is available in the 1.2 jdk. --Huston |
From: Paul A. <paa...@ci...> - 2003-04-16 21:10:19
|
Could someone tell me what the role of SessionCredential is in the Java beepcore library? In particular, is it intended as a means of providing credentials to a session that can be used by a client-peer when initiating a session/channel? Or is it just a means of reporting credentials that were obtained some other way when a session/channel was initiated? I'm trying to write a SASL/DIGEST-MD5 profile and am struggling a little with the contracts between some classes in the API. |
From: Toby M. <tob...@cs...> - 2003-04-15 13:35:30
|
I have actually implemented what Huston has suggested here, by modifying the SessionListener class to include an extra event handler method, called sessionReset(). When the reset() method is called in TCPSession, it calls a fireSessionReset() method in the Session base class, which calls the sessionReset() method for all session event listeners. In order to indicate the "new" session which has been created after performing the reset (Session.reset() returns a Session object), I modified the SessionEvent class to have a private member, newSession of type Session, with a getNewSession() method, and a constructor which could take this new session and set the private member to it. All the TCPSession.reset() method does is, before returning its result, call fireSessionReset() on the old session, passing it the new session (which is the result its about to return). fireSessionReset() then creates a SessionEvent with newSession set to the new session and calls hte sessionReset() method for all registered SessionListeners. Its trivial to then implement a SessionListener which updates the application's copy of the Session object when its sessionReset() method is called, by using the getNewSession() method on the event. This isn't the most beautiful solution, but it has worked for me. Its also something I hope Huston et al will address in the next release as without it, TLS seems fairly unworkable to me. Toby Huston wrote: >Currently there isn't a way to do this. I've been thinking of firing an >event on tuning reset to take care of this problem. > >--Huston > >On Fri, 2003-04-11 at 01:51, Toby Murray wrote: > > >>Hi, >>I have two parties communicating over a BEEP session. There are 2 >>channels, in operation. One initiated by one party, the other initiated >>by the other. >>Once hte session is established I'd like to: >>negotiate TLS, >>Pary A opens one channel >>Party B opens the other >> >>Everything works fine without TLS, however when either party starts the >>TLS negotiation, the other party doesn't know its going on. >>Consequently, the send their start channel message with the OLD session >>object. This seems to result in the start channel message being sent in >>plaintext. The other party is expecting this message to be sent >>encrypted, and so of course cannot understand its contents. >> >>I'm starting TLS using: >>TLSProfile.getDefaultInstance().startTLS(session)). >> >>The other party is just doing a listen for a TCP session connection and >>then doing a sessoin.startChannel() call to start the session (which is >>occuring in plaintext). >> >>Is there a way I can get the guy who doesn't start TLS to update his >>session object to reflect the fact that TLS is now going and that >>requests should be sent encrypted? >> >>Thanks >>Toby >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >>for complex code. Debugging C/C++ programs can leave you feeling lost and >>disoriented. TotalView can help you find your way. Available on major UNIX >>and Linux platforms. Try it free. www.etnus.com >>_______________________________________________ >>Beepcore-java-users mailing list >>Bee...@li... >>https://lists.sourceforge.net/lists/listinfo/beepcore-java-users >> >> >> > > > |
From: Huston <hu...@us...> - 2003-04-14 14:48:59
|
> I try to write a simple client-server (initiator-listener actually) > application. Server side first creates TLS and ECHO profiles then listens > for an incoming connection. Client side connects to the Server. Client side > first creates a Session then TLS and ECHO. After completing session, TLS and > ECHO connection ,Client simply sends a String to the Server and Server > prints this string to the console. I use sendMSG in the client and i believe > receiveMSG should be implemented in the Server. But my problem is i can not > find a way that how receiveMSG should be implemented. For the example you send the MessageListener is in org.beepcore.beep.profile.echo.EchoProfile. --Huston |
From: orcun s. <os...@ho...> - 2003-04-14 06:25:00
|
I am a beginner of the Beepcore-Java API and this API is a part of my university senior design project.But i have a problem. I try to write a simple client-server (initiator-listener actually) application. Server side first creates TLS and ECHO profiles then listens for an incoming connection. Client side connects to the Server. Client side first creates a Session then TLS and ECHO. After completing session, TLS and ECHO connection ,Client simply sends a String to the Server and Server prints this string to the console. I use sendMSG in the client and i believe receiveMSG should be implemented in the Server. But my problem is i can not find a way that how receiveMSG should be implemented. Client side codes ----------------------- session = TCPSessionCreator.initiate(host, port); // session creation session = TLSProfile.getDefaultInstance().startTLS((TCPSession) session); // TLS creation channel = session.startChannel(EchoProfile.ECHO_URI); // Echo channel creation channel.sendMSG(new StringOutputDataStream(request),reply); // sending message( request is a string) Here in client side using below code i can reach and print string (request) but this is not my goal!!! InputStream is = reply.getNextReply().getDataStream().getInputStream(); Server side codes ----------------------- uri = "http://iana.org/beep/TLS"; className ="org.beepcore.beep.profile.tls.jsse.TLSProfileJSSE"; SessionTuningProperties tuning = null; p = (Profile) Class.forName(className).newInstance(); profileConfig = new ProfileConfiguration(); startChannelListener = p.init(uri, profileConfig); reg.addStartChannelListener(uri,startChannelListener,tuning); // TLS registered uri = "http://xml.resource.org/profiles/NULL/ECHO"; className ="org.beepcore.beep.profile.echo.EchoProfile"; p = (Profile) Class.forName(className).newInstance(); profileConfig = new ProfileConfiguration(); startChannelListener = p.init(uri, profileConfig); reg.addStartChannelListener(uri,startChannelListener,tuning); // ECHO registered TCPSessionCreator.listen(port, reg); // listening for a connection I use Beepd and Bing examples as a reference. I think i need to use MessageListener interface and receiveMSG but due to lack of sample codes i can not progress in my project.I am really looking forward to your answer and thank for your help. Is there any web site or source including example code using BeepCore-Java API? ORCUN SEDEN _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: De K. SJ <136...@su...> - 2003-04-14 05:54:16
|
VG9ieSwNCiANCkkgaGFkIHRoZSBzYW1lIHByb2JsZW0gYWJvdXQgc2l4IG1vbnRocyBhZ28sIG5v dGUgdGhhdCBub3RoaW5nIGhhcyBiZWVuIGRvbmUgdG8gZml4IHRoaXMgeWV0LiBJIGJ5cGFzc2Vk IHRoaXMgcHJvYmxlbSBieSBjcmVhdGluZyBhbiBpbml0aWF0aW9uIG1lc3NhZ2UgdGhhdCBJIHNl bmQgZnJvbSB0aGUgcGVlciB0aGF0IHN3aXRjaGVkIHRvIFRMUy4gQmFzaWNhbGx5IHdoYXQgaGFw cGVucyBpcyB0aGF0IHRoZSBzZXNzaW9uIG9iamVjdCBpcyBuZXZlciB1cGRhdGVkIHdoZW4gVExT IGlzIHN0YXJ0ZWQgKG9yIGFueSBUdW5pbmcgcHJvZmlsZSBmb3IgdGhhdCBtYXR0ZXIpLiBUaGUg YmVlcCBzZXNzaW9uIGhvd2V2ZXIgZG9lcyB1c2UgVExTIGZvciBib3RoIHBlZXJzIHRoZXJlZm9y ZSB0aGUgaW5pdGlhdGlvbiBtZXNzYWdlIHdpbGwgYmUgcmVjaWV2ZWQuIFdoZW4geW91IHJlY2ll dmUgdGhlIG1lc3NhZ2Ugb24gdGhlIG5vbiBUTFMgaW5pdGlhdGluZyBwZWVyJ3Mgc2lkZSBhbmQg cmVjb2duaXplIGl0IGFzIGEgVExTIGluaXRpYXRpb24gbWVzc2FnZSB0aGVuIHlvdSBkbyBhIE1l c3NhZ2UoKS5nZXRDaGFubmVsKCkuZ2V0U2Vzc2lvbigpIHdoaWNoIHdpbGwgcmV0dXJuIHRoZSBz ZXNzaW9uIHRoYXQgdGhlIG1lc3NhZ2Ugd2FzdyBzZW50IG9uLCB3aGljaCB3YXMgdGhlIFRMUyBz ZXNzaW9uLg0KIA0KTm90IHRoZSBiZXN0IHdheSB0byBnZXQgdGhlIHByb2JsZW0gZml4ZWQgYnV0 IGl0IGlzIHF1aWNrIGFuZCBkb2VzIHdvcmsuDQpSZWdhcmRzLA0KU2Vhbg0K |
From: Huston <hu...@us...> - 2003-04-11 14:12:02
|
Currently there isn't a way to do this. I've been thinking of firing an event on tuning reset to take care of this problem. --Huston On Fri, 2003-04-11 at 01:51, Toby Murray wrote: > Hi, > I have two parties communicating over a BEEP session. There are 2 > channels, in operation. One initiated by one party, the other initiated > by the other. > Once hte session is established I'd like to: > negotiate TLS, > Pary A opens one channel > Party B opens the other > > Everything works fine without TLS, however when either party starts the > TLS negotiation, the other party doesn't know its going on. > Consequently, the send their start channel message with the OLD session > object. This seems to result in the start channel message being sent in > plaintext. The other party is expecting this message to be sent > encrypted, and so of course cannot understand its contents. > > I'm starting TLS using: > TLSProfile.getDefaultInstance().startTLS(session)). > > The other party is just doing a listen for a TCP session connection and > then doing a sessoin.startChannel() call to start the session (which is > occuring in plaintext). > > Is there a way I can get the guy who doesn't start TLS to update his > session object to reflect the fact that TLS is now going and that > requests should be sent encrypted? > > Thanks > Toby > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Beepcore-java-users mailing list > Bee...@li... > https://lists.sourceforge.net/lists/listinfo/beepcore-java-users > |
From: Toby M. <tob...@cs...> - 2003-04-11 07:51:26
|
Hi, I have two parties communicating over a BEEP session. There are 2 channels, in operation. One initiated by one party, the other initiated by the other. Once hte session is established I'd like to: negotiate TLS, Pary A opens one channel Party B opens the other Everything works fine without TLS, however when either party starts the TLS negotiation, the other party doesn't know its going on. Consequently, the send their start channel message with the OLD session object. This seems to result in the start channel message being sent in plaintext. The other party is expecting this message to be sent encrypted, and so of course cannot understand its contents. I'm starting TLS using: TLSProfile.getDefaultInstance().startTLS(session)). The other party is just doing a listen for a TCP session connection and then doing a sessoin.startChannel() call to start the session (which is occuring in plaintext). Is there a way I can get the guy who doesn't start TLS to update his session object to reflect the fact that TLS is now going and that requests should be sent encrypted? Thanks Toby |
From: Toby M. <tob...@cs...> - 2003-04-07 06:36:10
|
Hi all, I'm having trouble reading message content which is split over multiple BEEP frames. I'm using the IDXP infrastructure built on top of beepcore-java. When receiving messages, and using the InputDataStreamAdapter class to read the data, I am only getting access to the data which is in the first frame of the message. During the IDXP processing of messages, the message type is checked and the content header is examined to determine the message content. For octet-stream and text/plain messages, no other processing occurs before my app. gets access to the message. My application simply gets the InputDataStreamAdapter, creates an array big enough to hold the number of bytes available in the InputDataStreamAdapter, and reads the bytes into that array. The number of bytes returned by the available() method is only the count of hte payload for the first frame of what is a multi-frame message. Can anyone give me some help here? The strange part is, when trying to read the data using BufferSegments from the InputDataStream class, when I ask for the first buffersegment (using waitForNextBufferSegment()) I'm actually given the remainder of the message - ie. the part I can't read using InputDataStreamAdapter class. What is hte proper way to be using the BufferSegments / InputDataStreamAdapter classes to read the contents of messages? And does it matter that the getInputStream method has already been called in the InputDataStream associated with the message, before my code gets access to it? Thanks Toby |
From: Andrew K. <ak...@Sm...> - 2003-04-02 16:01:00
|
Thanks! Sorry, that was obvious. Should have thought of that myself. That's the trouble with juggling 27 different balls at one time. Is the Session timeout configurable, I can't seem to find how to do that either. Andrew -----Original Message----- From: Huston [mailto:hu...@us...] Sent: 02 April 2003 16:56 To: Andrew Keedle; bee...@li... Subject: Re: [Beepcore-java-users] Timeouts? The wait period is not configurable with the Reply class but you could implement one that is by implementing your own ReplyListener. The idea is that unless the connection under the session times out there will be a reply at some point in the future. If the connection times out then an exception should be thrown. --Huston |
From: Huston <hu...@us...> - 2003-04-02 15:56:30
|
Timeouts?The wait period is not configurable with the Reply class but = you could implement one that is by implementing your own ReplyListener. = The idea is that unless the connection under the session times out there = will be a reply at some point in the future. If the connection times out = then an exception should be thrown. --Huston ----- Original Message -----=20 From: Andrew Keedle=20 To: 'bee...@li...'=20 Sent: Wednesday, April 02, 2003 4:20 AM Subject: [Beepcore-java-users] Timeouts? How do I specify timeouts? I have a piece of code that does a sendMSG = and then does a getNextReply(). If the other end never responds then = this stalls forever. Is the wait period configurable? Reply reply =3D new Reply();=20 device.sendMSG(getDataStream(msgTX), reply);=20 Message msg =3D reply.getNextReply();=20 |
From: Andrew K. <ak...@Sm...> - 2003-04-02 11:20:34
|
How do I specify timeouts? I have a piece of code that does a sendMSG and then does a getNextReply(). If the other end never responds then this stalls forever. Is the wait period configurable? Reply reply = new Reply(); device.sendMSG(getDataStream(msgTX), reply); Message msg = reply.getNextReply(); |
From: Huston <hu...@us...> - 2003-03-26 14:27:49
|
> So while messing around with profiles and such, and trying to follow the > TLS profile, I have noticed that the TLS profiles piggyback data with the > start message. If I want a profile that can support piggybacked data, how > would I reply to this piggybacked data in the start message with an > error? Or even, how would I send an error frame on the channel? From what > I can see, one can only send MSG frames unless one has a Message object > and one is not provided with a piggybacked message, only a string with > the data. Unfortunately this is one of the ugly spots in the library. There is a setStartData method on the channel that is used to send a piggyback'd reply. I have another way I want to do this but there are other things in the queue ahead of it. --Huston |
From: Huston <hu...@us...> - 2003-03-26 14:23:44
|
You might try turning on the debug logging. If this doesn't help you send me the logs and I'll take a look. --Huston ----- Original Message ----- From: "Grant Wood" <gr...@na...> To: <bee...@li...> Sent: Monday, March 24, 2003 5:22 PM Subject: [Beepcore-java-users] New to BEEP > Hi, > > First, let me say that this is an excellent project that will > ultimately save me a lot of time and energy. Great work, keep it up. > Having said that, I'm a bit frustrated getting my first profile going. > I've looked through the mailing list archive, but have been unable to > find any comments related to my problem. It seems like such a > no-brainer that its driving me nuts. > > running a listener on a win2000 machine running java1.4.1_02 > starting a "client" session on a macOSX machine running java 1.4.1 > using beepcore version 0.9.07 > > Here's my problem: > Channel channel = session.startChannel(MySpecificURI); > but it never returns the channel? Why not? > > When I do this, the listener on my "server" calls startChannel() so I > assume the session is getting established fine. Everything hangs at > this point without any errors. receiveMSG never gets called on the > server because I never get a channel back on the client to send a > message with using channel.sendMSG(). None of the examples I've seen > use a separate thread to establish a channel, but it seems to be > waiting for something... Is this assessment right? > > Other considerations: > If I try and change the Profile URI to a bogus URI it fails the way > you'd expect. > I can telnet to the server and receive a <greeting></greeting> just > fine. > > There must be something obvious I'm missing here, because my client > code looks very similar to that of the example(except for the tons of > debugging code), but I can't see where I'm forgetting anything. I > realize this isn't much information to go on, but any help or > suggestions would be greatly appreciated. > > Grant Wood > gr...@na... > > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Beepcore-java-users mailing list > Bee...@li... > https://lists.sourceforge.net/lists/listinfo/beepcore-java-users > > |
From: Will B. <wbe...@od...> - 2003-03-25 04:53:32
|
Hi, So while messing around with profiles and such, and trying to follow the TLS profile, I have noticed that the TLS profiles piggyback data with the start message. If I want a profile that can support piggybacked data, how would I reply to this piggybacked data in the start message with an error? Or even, how would I send an error frame on the channel? From what I can see, one can only send MSG frames unless one has a Message object and one is not provided with a piggybacked message, only a string with the data. thanks for any insight that you can provide, William Berriel |
From: Grant W. <gr...@na...> - 2003-03-25 00:22:44
|
Hi, First, let me say that this is an excellent project that will ultimately save me a lot of time and energy. Great work, keep it up. Having said that, I'm a bit frustrated getting my first profile going. I've looked through the mailing list archive, but have been unable to find any comments related to my problem. It seems like such a no-brainer that its driving me nuts. running a listener on a win2000 machine running java1.4.1_02 starting a "client" session on a macOSX machine running java 1.4.1 using beepcore version 0.9.07 Here's my problem: Channel channel = session.startChannel(MySpecificURI); but it never returns the channel? Why not? When I do this, the listener on my "server" calls startChannel() so I assume the session is getting established fine. Everything hangs at this point without any errors. receiveMSG never gets called on the server because I never get a channel back on the client to send a message with using channel.sendMSG(). None of the examples I've seen use a separate thread to establish a channel, but it seems to be waiting for something... Is this assessment right? Other considerations: If I try and change the Profile URI to a bogus URI it fails the way you'd expect. I can telnet to the server and receive a <greeting></greeting> just fine. There must be something obvious I'm missing here, because my client code looks very similar to that of the example(except for the tons of debugging code), but I can't see where I'm forgetting anything. I realize this isn't much information to go on, but any help or suggestions would be greatly appreciated. Grant Wood gr...@na... |
From: Paul A. <paa...@ci...> - 2003-03-18 22:17:09
|
Hi, I'd like to either use or implement a DIGEST-MD5 SASL profile. How do I integrate such a profile with the existing SASL profiles in org.beepcore.beep.profile.sasl? Do I have to just go in there and add it to the code base or is there some way I can register extra SASL profiles with the existing implementation? On a slightly different note: has anyone already dome this? And on yet another slightly different note: I notice that JDK1.4 has a preview implementation of JSR28 (the Java SASL API), which is slated to become a standard part of J2SE1.5 (!). It has a DIGEST-MD5 implementation. Does anyone have any experience trying ot use it for anything other than LDAP? Cheers - Paul Andrews. |
From: Paul A. <paa...@ci...> - 2003-03-18 22:15:29
|
This seems to be missing from the distribution. There is an HTML file that contains most of the code for it, but not all. Does anyone have it? |