Thread: [Beepcore-java-users] Help I'm drowning
Status: Beta
Brought to you by:
huston
|
From: De K. SJ <136...@su...> - 2002-11-28 13:15:13
|
Hi, =20 I am doing vac work for a company who has asked me to look into the pros = and cons of beep and in particular the beepcore implementation in java. = I am studing Electronic Engeneering with Computer Science, I have just = complete my second year. I feel like I have been thrown in the deep end = here. Hey you know what they say, that is the best way to lear how to = swim. Well I have been able to float, but for the past two days I have = battled to get to grips with beep, and the java implementation. =20 I am sure that for most, if not, all of you my questions will seem = exteremly simple, but I will appreciate any help that you can give me. =20 From what I have read about beep it is ideal for what this company is = wanting to do, so I know that my time is not being wasted. =20 - What is the role of profiles? - Once I have got a session up how do I make a connection from the = Server to the Client (implementing peer-to-peer)? - When a message is sent to the server, how does the server recieve the = message? I am guessing that it has to do with the profile, is that = correct? - Is beepcore-java the best java implementation to use? =20 Thanks Sean |
|
From: Huston <hu...@us...> - 2002-11-28 16:38:55
|
Sean, - What is the role of profiles? A profile in the protocol sense is a description of the communication on a particular channel. A profile with respect to the library is the code that implements the communication on a particular channel. - Once I have got a session up how do I make a connection from the Server to the Client (implementing peer-to-peer)? BEEP is bi-directional (peer-to-peer) so if you have a connection from the Client (Initiator) to the Server (Listener) then either side can start a channel as long as the other is advertising the requested profile. - When a message is sent to the server, how does the server recieve the message? I am guessing that it has to do with the profile, is that correct? MSG messages are received by registering a MessageListener interface on a channel. --Huston |
|
From: Harsh D. <hda...@io...> - 2002-11-28 17:00:26
|
I suggest you take good look at example provided with the kit (Beepd.java and Bing.java). My responses are below your questions: -- Harsh Daharwal IOS Networks Inc. http://www.iosnetworks.com De Kock SJ said: > Hi, > > I am doing vac work for a company who has asked me to look into the > pros and cons of beep and in particular the beepcore implementation in > java. I am studing Electronic Engeneering with Computer Science, I have > just complete my second year. I feel like I have been thrown in the > deep end here. Hey you know what they say, that is the best way to lear > how to swim. Well I have been able to float, but for the past two days > I have battled to get to grips with beep, and the java implementation. > > I am sure that for most, if not, all of you my questions will seem > exteremly simple, but I will appreciate any help that you can give me. > > From what I have read about beep it is ideal for what this company is > wanting to do, so I know that my time is not being wasted. > > - What is the role of profiles? Profile is what you need to implement for developing your protocol on top of BEEP. Usually all "interesting" work is in profiles. Read BEEP spec for details. Although You will not find implementation details of beepcore-java there. You usually build a registry of profiles and register with the framework. > - Once I have got a session up how do I make a connection from the > Server to the Client (implementing peer-to-peer)? Typically, client initiates a session and then creates Channel with desired profile. Use Channel to send messages. Message processing at the receiving end takes place in your profile. Use the Message object, given by framework to profile-methods, for replying. > - When a message is sent to the server, how does the server recieve > the message? I am guessing that it has to do with the profile, is that > correct? Which message are you talking about? Connection requests are processed using TCPSessionCreator. All other messages are usually processed in profile. > - Is beepcore-java the best java implementation to use? This is something for you to decide. There are other implementations available, such as beep4j, permabeep etc. I haven't seen much progress on beep4j lately, although they claim that they are using a better architecture (SEDA). You need to pay for the latter. Besides, beepcore- java, if I'm not wrong, is the oldest of them (java implementations) all. > > Thanks > Sean |
|
From: Harsh D. <hda...@io...> - 2002-11-28 17:24:33
|
I realized it after seeing Huston's response that I failed to mention, my assumption that Profile is implementing *Listener interfaces ( Message, Reply). Harsh Daharwal said: > I suggest you take good look at example provided with the kit > (Beepd.java and Bing.java). My responses are below your questions: > > -- > Harsh Daharwal > IOS Networks Inc. > http://www.iosnetworks.com > > De Kock SJ said: >> Hi, >> >> I am doing vac work for a company who has asked me to look into the >> pros and cons of beep and in particular the beepcore implementation in >> java. I am studing Electronic Engeneering with Computer Science, I >> have just complete my second year. I feel like I have been thrown in >> the deep end here. Hey you know what they say, that is the best way to >> lear how to swim. Well I have been able to float, but for the past two >> days I have battled to get to grips with beep, and the java >> implementation. >> >> I am sure that for most, if not, all of you my questions will seem >> exteremly simple, but I will appreciate any help that you can give me. >> >> From what I have read about beep it is ideal for what this company is >> wanting to do, so I know that my time is not being wasted. >> >> - What is the role of profiles? > > Profile is what you need to implement for developing your protocol on > top of BEEP. Usually all "interesting" work is in profiles. Read > BEEP spec for details. Although You will not find implementation > details of beepcore-java there. > > You usually build a registry of profiles and register with the > framework. > >> - Once I have got a session up how do I make a connection from the >> Server to the Client (implementing peer-to-peer)? > > Typically, client initiates a session and then creates Channel with > desired profile. Use Channel to send messages. > > Message processing at the receiving end takes place in your profile. > Use the Message object, given by framework to profile-methods, for > replying. > >> - When a message is sent to the server, how does the server recieve >> the message? I am guessing that it has to do with the profile, is that >> correct? > > Which message are you talking about? Connection requests are > processed using TCPSessionCreator. All other messages are usually > processed in profile. > >> - Is beepcore-java the best java implementation to use? > > This is something for you to decide. There are other implementations > available, such as beep4j, permabeep etc. I haven't seen much progress > on beep4j lately, although they claim that they are using a better > architecture (SEDA). You need to pay for the latter. Besides, beepcore- > java, if I'm not wrong, is the oldest of them (java implementations) > all. > >> >> Thanks >> Sean > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Beepcore-java-users mailing list > Bee...@li... > https://lists.sourceforge.net/lists/listinfo/beepcore-java-users -- Harsh Daharwal IOS Networks Inc. http://www.iosnetworks.com |