bme-develop Mailing List for Be-messeng-er (Page 5)
Status: Planning
Brought to you by:
sirmik
You can subscribe to this list here.
2004 |
Jan
(7) |
Feb
(15) |
Mar
(45) |
Apr
(46) |
May
(18) |
Jun
(6) |
Jul
(12) |
Aug
(45) |
Sep
(7) |
Oct
(9) |
Nov
(37) |
Dec
(24) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(6) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Simon T. <sim...@ga...> - 2004-08-13 16:37:13
|
Hi Guys, A friend of mine just pointed this out to me... http://webmessenger.msn.com It actually works with the firefox I've got, emoticon support in chat windows, click to change screen name, etc - pretty good for a web application. So now lets make bme a hell of a lot better! Simon |
From: Jixt <ji...@li...> - 2004-08-13 16:15:11
|
> I read something about Zeta not having PostMessage by default. > http://www.yellowtab.com/news/article.php?id=96 > > "There is a macro defined in the header you can set in your project > to > still use this [PostMessage]" - I haven't got the headers for Zeta so > I > don't know what that is, I'm afraid. Yeah, typical YellowTab. They change something and they say something about it. But don't think they will say everything! If I know the solution, I will tell you guys. Maybe handy then to put on the homepage ;) Jixt |
From: Simon T. <sim...@ga...> - 2004-08-13 16:00:31
|
> Hi, > > > about compiling: first to make sure: you are using Bme_x86.proj > > right? make > > sure you place the cryplib.h file in a dir accessible to BeIDE(not > > sure > > which dir, maybe the others can help here). I wonder when you > > downloaded > > the code from CVS? The Netwatch files weren't in cvs before, but > > Simon > > uploaded them to cvs this week(right Simon?), if it doesn't > > compile, > > and you > > don't have them, just delete the entire Netwatch dir to fix the > > compiling > > issues. Another issue is the libbnetapi.so file, this is a BONE > > file...the > > r5 file is called libnetapi.so: this doesn't cause any compiling > > issues but > > make sure you have included the right one in your project, > > otherwise > > you > > won't get connected to internet. > > I'm compiling everything in Zeta RC 3. I have cryptlib.h into a > directory that is accessible to BEIDE. and I use the libbnetapi.so. > All errors have something to do with PostMessage.... I think it is > somenthing stupid that I forgot to do... > > In the attachments you can see my errors. > > Jixt I read something about Zeta not having PostMessage by default. http://www.yellowtab.com/news/article.php?id=96 "There is a macro defined in the header you can set in your project to still use this [PostMessage]" - I haven't got the headers for Zeta so I don't know what that is, I'm afraid. Simon |
From: Jixt <ji...@li...> - 2004-08-13 15:49:57
|
Hi, > about compiling: first to make sure: you are using Bme_x86.proj > right? make > sure you place the cryplib.h file in a dir accessible to BeIDE(not > sure > which dir, maybe the others can help here). I wonder when you > downloaded > the code from CVS? The Netwatch files weren't in cvs before, but > Simon > uploaded them to cvs this week(right Simon?), if it doesn't compile, > and you > don't have them, just delete the entire Netwatch dir to fix the > compiling > issues. Another issue is the libbnetapi.so file, this is a BONE > file...the > r5 file is called libnetapi.so: this doesn't cause any compiling > issues but > make sure you have included the right one in your project, otherwise > you > won't get connected to internet. I'm compiling everything in Zeta RC 3. I have cryptlib.h into a directory that is accessible to BEIDE. and I use the libbnetapi.so. All errors have something to do with PostMessage.... I think it is somenthing stupid that I forgot to do... In the attachments you can see my errors. Jixt |
From: Simon T. <sim...@ga...> - 2004-08-13 15:49:01
|
I haven't looked in detail, but how about creating a function like (completely untested code): void GetProfileInt(const BString* msgBody, const char* field, int* destinationInt) { int32 fieldStart = msgBody.FindFirst(field); if (fieldStart != B_ERROR) { fieldStart += strlen(fieldStart); int32 fieldEnd = msgBody.FindFirst("\r\n",fieldStart); BString intField; msgBody->CopyInto(intField,fieldStart,fieldEnd-fieldStart); *destinationInt = atoi(intField.String()); } } and similar functions for string and maybe bool. Then all your profile storage code becomes: [snip] GetProfileInt(&msgBody, "LoginTime", &userProfile.loginTime); GetProfileBool(&msgBody, "EmailEnabled", &userProfile.emailEnabled); GetProfileInt(&msgBody, "MemberIdHigh", &userProfile.memberIdHigh); GetProfileInt(&msgBody, "MemberIdLow", &userProfile.memberIdLow); GetProfileInt(&msgBody, "lang_preference", & userProfile.langPreference); GetProfileString(&msgBody, "preferredEmail", & userProfile.preferredEmail); GetProfileInt(&msgBody, "country", &userProfile.country); GetProfileString(&msgBody, "PostalCode", &userProfile.postalCode); GetProfileString(&msgBody, "Gender", &userProfile.gender); GetProfileBool(&msgBody, "Kid", &userProfile.kid); GetProfileInt(&msgBody, "Age", &userProfile.age); ...etc (got bored doing the conversion, hopefully you understand the plan :)) [snip] That looks much neater to me. If you really want to use a map, I guess that's OK, as the data is originally received from the server as string data anyway. Simon > Hi guys, > > I am doing some work on getting the user's profile information from > the > server(parsing it)....problem is, it's getting a bit of mess and > somewhat > duplicated code....not entirely so I can't find a way to do it > nicely, maybe > you have some ideas for me...the code looks like this: > > if (strstr(mime,"text/x-msmsgsprofile") !=NULL) > { > //profile message > Profile userProfile; > > int32 loginStart = msgBody.FindFirst("LoginTime"); > if (loginStart != B_ERROR) > { > loginStart += 9; > int32 loginEnd = msgBody.FindFirst("\r\n",loginStart); > BString loginTime; > msgBody.CopyInto(loginTime,loginStart,loginEnd-loginStart); > userProfile.loginTime = atoi(loginTime.String()); > } > > int32 emailEnabledStart = msgBody.FindFirst("EmailEnabled"); > if (emailEnabledStart != B_ERROR) > { > emailEnabledStart += 12; > int32 emailEnabledEnd = msgBody.FindFirst("\r\ > n",emailEnabledStart); > BString emailEnabled; > > msgBody.CopyInto(emailEnabled,emailEnabledStart,emailEnabledEnd > -emailEnabledStart); > userProfile.emailEnabled = atoi(emailEnabled.String());// > bool, check > if this works > } > > int32 memberIdHighStart = msgBody.FindFirst("MemberIdHigh"); > if (memberIdHighStart != B_ERROR) > { > memberIdHighStart += 12; > int32 memberIdHighEnd = msgBody.FindFirst("\r\ > n",memberIdHighStart); > BString memberIdHigh; > > msgBody.CopyInto(memberIdHigh,memberIdHighStart,memberIdHighEnd > -memberIdHighStart); > userProfile.memberIdHigh = atoi(memberIdHigh.String()); > } > > int32 memberIdLowStart = msgBody.FindFirst("MemberIdLow"); > if (memberIdLowStart != B_ERROR) > { > memberIdLowStart += 11; > int32 memberIdLowEnd = msgBody.FindFirst("\r\ > n",memberIdLowStart); > BString memberIdLow; > > msgBody.CopyInto(memberIdLow,memberIdLowStart,memberIdLowEnd- > memberIdLowStart); > userProfile.memberIdLow = atoi(memberIdLow.String()); > } > > int32 lang_preferenceStart = > msgBody.FindFirst("lang_preference"); > if (lang_preferenceStart != B_ERROR) > { > lang_preferenceStart += 15; > int32 lang_preferenceEnd = > msgBody.FindFirst("\r\n",lang_preferenceStart); > BString lang_preference; > > > msgBody.CopyInto(lang_preference,lang_preferenceStart,lang_preferenceEn d-lang_preferenceStart); > userProfile.langPreference = > atoi(lang_preference.String()); > } > > int32 preferredEmailStart = > msgBody.FindFirst("preferredEmail"); > if (preferredEmailStart != B_ERROR) > { > preferredEmailStart += 14; > int32 preferredEmailEnd = > msgBody.FindFirst("\r\n",preferredEmailStart); > > > msgBody.CopyInto(userProfile.preferredEmail,preferredEmailStart,preferr edEmailEnd-preferredEmailStart); > } > > int32 countryStart = msgBody.FindFirst("country"); > if (countryStart != B_ERROR) > { > countryStart += 7; > int32 countryEnd = msgBody.FindFirst("\r\n",countryStart); > BString country; > msgBody.CopyInto(country,countryStart,countryEnd- > countryStart); > userProfile.country = atoi(country.String()); > } > > int32 postalCodeStart = msgBody.FindFirst("PostalCode"); > if (postalCodeStart != B_ERROR) > { > postalCodeStart += 10; > int32 postalCodeEnd = msgBody.FindFirst("\r\ > n",postalCodeStart); > > > msgBody.CopyInto(userProfile.postalCode,postalCodeStart,postalCodeEnd- postalCodeStart); > } > > int32 genderStart = msgBody.FindFirst("Gender"); > if (genderStart != B_ERROR) > { > genderStart += 6; > int32 genderEnd = msgBody.FindFirst("\r\n",genderStart); > > msgBody.CopyInto(userProfile.gender,genderStart,genderEnd- > genderStart); > } > > int32 kidStart = msgBody.FindFirst("Kid"); > if (kidStart != B_ERROR) > { > kidStart += 3; > int32 kidEnd = msgBody.FindFirst("\r\n",kidStart); > BString kid; > msgBody.CopyInto(kid,kidStart,kidEnd-kidStart); > userProfile.kid = atoi(kid.String()); //bool, check if > works! > } > > int32 ageStart = msgBody.FindFirst("Age"); > if (ageStart != B_ERROR) > { > ageStart += 3; > int32 ageEnd = msgBody.FindFirst("\r\n",ageStart); > BString age; > msgBody.CopyInto(age,ageStart,ageEnd-ageStart); > userProfile.age = atoi(age.String()); //bool, check if > works! > } > > int32 bDayPreStart = msgBody.FindFirst("BDayPre"); > if (bDayPreStart != B_ERROR) > { > bDayPreStart += 7; > int32 bDayPreEnd = msgBody.FindFirst("\r\n",bDayPreStart); > > msgBody.CopyInto(userProfile.bDayPre,bDayPreStart,bDayPreEnd- > bDayPreStart); > } > > int32 birthdayStart = msgBody.FindFirst("Birthday"); > if (birthdayStart != B_ERROR) > { > birthdayStart += 8; > int32 birthdayEnd = msgBody.FindFirst("\r\ > n",birthdayStart); > BString birthday; > msgBody.CopyInto(birthday,birthdayStart,birthdayEnd- > birthdayStart); > userProfile.birthday = atoi(birthday.String()); //bool, > check if > works! > } > > int32 walletStart = msgBody.FindFirst("Wallet"); > if (walletStart != B_ERROR) > { > walletStart += 8; > int32 walletEnd = msgBody.FindFirst("\r\n",walletStart); > BString wallet; > msgBody.CopyInto(wallet,walletStart,walletEnd-walletStart); > userProfile.wallet = atoi(wallet.String()); //bool, check > if works! > } > > int32 flagsStart = msgBody.FindFirst("Flags"); > if (flagsStart != B_ERROR) > { > flagsStart += 5; > int32 flagsEnd = msgBody.FindFirst("\r\n",flagsStart); > BString flags; > msgBody.CopyInto(flags,flagsStart,flagsEnd-flagsStart); > userProfile.flags = atoi(flags.String()); //bool, check if > works! > } > > int32 sidStart = msgBody.FindFirst("sid"); > if (sidStart != B_ERROR) > { > sidStart += 3; > int32 sidEnd = msgBody.FindFirst("\r\n",sidStart); > BString sid; > msgBody.CopyInto(sid,sidStart,sidEnd-sidStart); > userProfile.sid = atoi(sid.String()); > } > > int32 kvStart = msgBody.FindFirst("kv"); > if (kvStart != B_ERROR) > { > kvStart += 2; > int32 kvEnd = msgBody.FindFirst("\r\n",kvStart); > BString kv; > msgBody.CopyInto(kv,kvStart,kvEnd-kvStart); > userProfile.kv = atoi(kv.String()); > } > > int32 mspAuthStart = msgBody.FindFirst("MSPAuth"); > if (mspAuthStart != B_ERROR) > { > mspAuthStart += 7; > int32 mspAuthEnd = msgBody.FindFirst("\r\n",mspAuthStart); > > msgBody.CopyInto(userProfile.mspAuth,mspAuthStart,mspAuthEnd- > mspAuthStart); > } > > int32 clientIPStart = msgBody.FindFirst("ClientIP"); > if (clientIPStart != B_ERROR) > { > clientIPStart += 8; > int32 clientIPEnd = msgBody.FindFirst("\r\ > n",clientIPStart); > > msgBody.CopyInto(userProfile.clientIP,clientIPStart,clientIPEnd > -clientIPStart); > } > > int32 clientPortStart = msgBody.FindFirst("ClientPort"); > if (clientPortStart != B_ERROR) > { > clientPortStart += 10; > int32 clientPortEnd = msgBody.FindFirst("\r\ > n",clientPortStart); > BString clientPort; > > msgBody.CopyInto(clientPort,clientPortStart,clientPortEnd- > clientPortStart); > userProfile.clientPort = atoi(clientPort.String()); > } > //set the main user's profile > Common::yo->setProfile(userProfile); > } > > I thought of putting all information into a map structure...this is > very > flexible...but then we will get problems with different data types > strings, > ints, bools and dates....of course we could just store everything as > strings > but this maybe involves some casting of the information at the places > they > are needed....would that be a problem? > > regards, > > Tim > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > bme-develop mailing list > bme...@li... > https://lists.sourceforge.net/lists/listinfo/bme-develop |
From: Simon T. <sim...@ga...> - 2004-08-13 15:43:23
|
> Hi, > > >At the moment I'm trying to track a weird bug where the SBHandler > >thread crashes in my BeMSN build, but not in my Bme build even > > though > >the network code is the same. Commenting out the color and font > > stuff > >seemed to help; I'll investigate a bit more. Hopefully have it done > > by > >the weekend. > > > Is that the trillian to BeMSN bug we talked about yesterday? hope > you'll > find it! btw profile code works fine now...but I do want some > comments on > it! Simon, what happen to your Screennameview code? is it completed > yet? My > own code is starting to annoy me ;) Hehe, that's first on the list. In fact it's not trillian - seems to be some people just using the official MSN client. I've got a reply to your profile code in the works, 5 minutes.... Simon > regards, > > Tim > > _________________________________________________________________ > Play online games with your friends with MSN Messenger > http://messenger.msn.nl/ > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > bme-develop mailing list > bme...@li... > https://lists.sourceforge.net/lists/listinfo/bme-develop |
From: Sir M. <obe...@ho...> - 2004-08-13 15:35:45
|
Hi, >At the moment I'm trying to track a weird bug where the SBHandler >thread crashes in my BeMSN build, but not in my Bme build even though >the network code is the same. Commenting out the color and font stuff >seemed to help; I'll investigate a bit more. Hopefully have it done by >the weekend. > Is that the trillian to BeMSN bug we talked about yesterday? hope you'll find it! btw profile code works fine now...but I do want some comments on it! Simon, what happen to your Screennameview code? is it completed yet? My own code is starting to annoy me ;) regards, Tim _________________________________________________________________ Play online games with your friends with MSN Messenger http://messenger.msn.nl/ |
From: Simon T. <sim...@ga...> - 2004-08-13 15:31:35
|
> Hello, > > Good work Simon, this is the first step into cleaning the cvs > repository. And speaking about that, what do you guys think about > importing this final release of BeMSN into it's own module in the > CVS, > apart from the current mess in Bme? That way we can all contribute in > testing or whatever. My plan was to send you guys a zip with the source in it, but to remove it from CVS. As Tim says, removing stuff from CVS just moves it into the attic directory, it doesn't go for ever anyway. I think that will be ok. At the moment I'm trying to track a weird bug where the SBHandler thread crashes in my BeMSN build, but not in my Bme build even though the network code is the same. Commenting out the color and font stuff seemed to help; I'll investigate a bit more. Hopefully have it done by the weekend. Simon > Regards, > Daniel > > > Hi All, > > > > I've finally found a bit of time and a bit of motivation and have > > put > > together a "final" release of BeMSN so we can finally get that out > > to > > people, and then get CVS cleaned up. > > > > There were initially hundreds of build errors , but in fact not > > many > > changes needed making to get it to build sucessfully. > > > > I've also fixed a few bugs: > > -The windows appearing small in the top left is fixed > > -Chat windows don't visibly appear in one pace before instantly > > moving > > any more > > -Default path for the sounds is now "apppath/Sounds/online.wav" etc > > -Version number increased to 1.6 > > -Cryptlib timeout length altered (sometimes it seems > > cryptDestoySession > > hangs for the length of the timeout on my system - when the timeout > > was > > 2 minutes (as before) the server seems to give up on you and not > > allow > > you to sign in). > > -Update rate of statusbar in chat window altered so people who are > > typing for longer periods don't flash off breifly. > > > > It's currently in the testing phase (I had a crash early on in a > > conversation, not enough people have been talking to me to get me > > to > > reproduce it though). Once I track that bug down, it should be > > ready > > for release, hopefully by this weekend. Then we can finally get > > started > > on bme! > > > > Simon > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > bme-develop mailing list > bme...@li... > https://lists.sourceforge.net/lists/listinfo/bme-develop |
From: Sir M. <obe...@ho...> - 2004-08-13 10:05:40
|
Hi guys, I am doing some work on getting the user's profile information from the server(parsing it)....problem is, it's getting a bit of mess and somewhat duplicated code....not entirely so I can't find a way to do it nicely, maybe you have some ideas for me...the code looks like this: if (strstr(mime,"text/x-msmsgsprofile") !=NULL) { //profile message Profile userProfile; int32 loginStart = msgBody.FindFirst("LoginTime"); if (loginStart != B_ERROR) { loginStart += 9; int32 loginEnd = msgBody.FindFirst("\r\n",loginStart); BString loginTime; msgBody.CopyInto(loginTime,loginStart,loginEnd-loginStart); userProfile.loginTime = atoi(loginTime.String()); } int32 emailEnabledStart = msgBody.FindFirst("EmailEnabled"); if (emailEnabledStart != B_ERROR) { emailEnabledStart += 12; int32 emailEnabledEnd = msgBody.FindFirst("\r\n",emailEnabledStart); BString emailEnabled; msgBody.CopyInto(emailEnabled,emailEnabledStart,emailEnabledEnd-emailEnabledStart); userProfile.emailEnabled = atoi(emailEnabled.String());//bool, check if this works } int32 memberIdHighStart = msgBody.FindFirst("MemberIdHigh"); if (memberIdHighStart != B_ERROR) { memberIdHighStart += 12; int32 memberIdHighEnd = msgBody.FindFirst("\r\n",memberIdHighStart); BString memberIdHigh; msgBody.CopyInto(memberIdHigh,memberIdHighStart,memberIdHighEnd-memberIdHighStart); userProfile.memberIdHigh = atoi(memberIdHigh.String()); } int32 memberIdLowStart = msgBody.FindFirst("MemberIdLow"); if (memberIdLowStart != B_ERROR) { memberIdLowStart += 11; int32 memberIdLowEnd = msgBody.FindFirst("\r\n",memberIdLowStart); BString memberIdLow; msgBody.CopyInto(memberIdLow,memberIdLowStart,memberIdLowEnd-memberIdLowStart); userProfile.memberIdLow = atoi(memberIdLow.String()); } int32 lang_preferenceStart = msgBody.FindFirst("lang_preference"); if (lang_preferenceStart != B_ERROR) { lang_preferenceStart += 15; int32 lang_preferenceEnd = msgBody.FindFirst("\r\n",lang_preferenceStart); BString lang_preference; msgBody.CopyInto(lang_preference,lang_preferenceStart,lang_preferenceEnd-lang_preferenceStart); userProfile.langPreference = atoi(lang_preference.String()); } int32 preferredEmailStart = msgBody.FindFirst("preferredEmail"); if (preferredEmailStart != B_ERROR) { preferredEmailStart += 14; int32 preferredEmailEnd = msgBody.FindFirst("\r\n",preferredEmailStart); msgBody.CopyInto(userProfile.preferredEmail,preferredEmailStart,preferredEmailEnd-preferredEmailStart); } int32 countryStart = msgBody.FindFirst("country"); if (countryStart != B_ERROR) { countryStart += 7; int32 countryEnd = msgBody.FindFirst("\r\n",countryStart); BString country; msgBody.CopyInto(country,countryStart,countryEnd-countryStart); userProfile.country = atoi(country.String()); } int32 postalCodeStart = msgBody.FindFirst("PostalCode"); if (postalCodeStart != B_ERROR) { postalCodeStart += 10; int32 postalCodeEnd = msgBody.FindFirst("\r\n",postalCodeStart); msgBody.CopyInto(userProfile.postalCode,postalCodeStart,postalCodeEnd-postalCodeStart); } int32 genderStart = msgBody.FindFirst("Gender"); if (genderStart != B_ERROR) { genderStart += 6; int32 genderEnd = msgBody.FindFirst("\r\n",genderStart); msgBody.CopyInto(userProfile.gender,genderStart,genderEnd-genderStart); } int32 kidStart = msgBody.FindFirst("Kid"); if (kidStart != B_ERROR) { kidStart += 3; int32 kidEnd = msgBody.FindFirst("\r\n",kidStart); BString kid; msgBody.CopyInto(kid,kidStart,kidEnd-kidStart); userProfile.kid = atoi(kid.String()); //bool, check if works! } int32 ageStart = msgBody.FindFirst("Age"); if (ageStart != B_ERROR) { ageStart += 3; int32 ageEnd = msgBody.FindFirst("\r\n",ageStart); BString age; msgBody.CopyInto(age,ageStart,ageEnd-ageStart); userProfile.age = atoi(age.String()); //bool, check if works! } int32 bDayPreStart = msgBody.FindFirst("BDayPre"); if (bDayPreStart != B_ERROR) { bDayPreStart += 7; int32 bDayPreEnd = msgBody.FindFirst("\r\n",bDayPreStart); msgBody.CopyInto(userProfile.bDayPre,bDayPreStart,bDayPreEnd-bDayPreStart); } int32 birthdayStart = msgBody.FindFirst("Birthday"); if (birthdayStart != B_ERROR) { birthdayStart += 8; int32 birthdayEnd = msgBody.FindFirst("\r\n",birthdayStart); BString birthday; msgBody.CopyInto(birthday,birthdayStart,birthdayEnd-birthdayStart); userProfile.birthday = atoi(birthday.String()); //bool, check if works! } int32 walletStart = msgBody.FindFirst("Wallet"); if (walletStart != B_ERROR) { walletStart += 8; int32 walletEnd = msgBody.FindFirst("\r\n",walletStart); BString wallet; msgBody.CopyInto(wallet,walletStart,walletEnd-walletStart); userProfile.wallet = atoi(wallet.String()); //bool, check if works! } int32 flagsStart = msgBody.FindFirst("Flags"); if (flagsStart != B_ERROR) { flagsStart += 5; int32 flagsEnd = msgBody.FindFirst("\r\n",flagsStart); BString flags; msgBody.CopyInto(flags,flagsStart,flagsEnd-flagsStart); userProfile.flags = atoi(flags.String()); //bool, check if works! } int32 sidStart = msgBody.FindFirst("sid"); if (sidStart != B_ERROR) { sidStart += 3; int32 sidEnd = msgBody.FindFirst("\r\n",sidStart); BString sid; msgBody.CopyInto(sid,sidStart,sidEnd-sidStart); userProfile.sid = atoi(sid.String()); } int32 kvStart = msgBody.FindFirst("kv"); if (kvStart != B_ERROR) { kvStart += 2; int32 kvEnd = msgBody.FindFirst("\r\n",kvStart); BString kv; msgBody.CopyInto(kv,kvStart,kvEnd-kvStart); userProfile.kv = atoi(kv.String()); } int32 mspAuthStart = msgBody.FindFirst("MSPAuth"); if (mspAuthStart != B_ERROR) { mspAuthStart += 7; int32 mspAuthEnd = msgBody.FindFirst("\r\n",mspAuthStart); msgBody.CopyInto(userProfile.mspAuth,mspAuthStart,mspAuthEnd-mspAuthStart); } int32 clientIPStart = msgBody.FindFirst("ClientIP"); if (clientIPStart != B_ERROR) { clientIPStart += 8; int32 clientIPEnd = msgBody.FindFirst("\r\n",clientIPStart); msgBody.CopyInto(userProfile.clientIP,clientIPStart,clientIPEnd-clientIPStart); } int32 clientPortStart = msgBody.FindFirst("ClientPort"); if (clientPortStart != B_ERROR) { clientPortStart += 10; int32 clientPortEnd = msgBody.FindFirst("\r\n",clientPortStart); BString clientPort; msgBody.CopyInto(clientPort,clientPortStart,clientPortEnd-clientPortStart); userProfile.clientPort = atoi(clientPort.String()); } //set the main user's profile Common::yo->setProfile(userProfile); } I thought of putting all information into a map structure...this is very flexible...but then we will get problems with different data types strings, ints, bools and dates....of course we could just store everything as strings but this maybe involves some casting of the information at the places they are needed....would that be a problem? regards, Tim _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
From: Sir M. <obe...@ho...> - 2004-08-13 09:59:49
|
Hi Jixt, >I've tried to compile the bme stuff and I am stuck @ 41 errors. What I want >to say is that it is important to clean up the CVS. Also make sure >everything compiles before you do a check-in into the CVS. For people who >just want to make a build from the current CVS, it is a problem. You need >the sources of cryptlib(had to find it myself. i could not find it on the >homepage...). And you need to figure out why it does not compile. >>Could anyone help me what I need to do(a preparation) before I compile the >>whole stuff? Maybe it would be nice to put that all on the homepage. I >>know developpers don't like documentation, but somethimes it is needed to >>speed up the development of your project ;) > I think documentation is very important! I tried to give a download and compile manual at bme.sourceforge.net but it's slightly outdated now...page should have an update anyway! about compiling: first to make sure: you are using Bme_x86.proj right? make sure you place the cryplib.h file in a dir accessible to BeIDE(not sure which dir, maybe the others can help here). I wonder when you downloaded the code from CVS? The Netwatch files weren't in cvs before, but Simon uploaded them to cvs this week(right Simon?), if it doesn't compile, and you don't have them, just delete the entire Netwatch dir to fix the compiling issues. Another issue is the libbnetapi.so file, this is a BONE file...the r5 file is called libnetapi.so: this doesn't cause any compiling issues but make sure you have included the right one in your project, otherwise you won't get connected to internet. Another issue MYOB pointed out to me was that the Bme app only compiles correctly(without causing a crash) on Dano, when debugging is enabled...not sure why! hope this helps! otherwise we should sometime talk in BeShare about this! >What I also think is that it would be bad to create another module >specially for the final release. All should be @ one place, otherwise it >will become confusing. > I agree...as I've understood from Simon, the old BeMSN files will still be in the attic, maybe the thing we could do is set a package with the latest release (binary + source) on our homepage, just to have them around! regards, Tim _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
From: Jan-Rixt V. H. <jan...@pa...> - 2004-08-13 07:16:20
|
Hi, I've tried to compile the bme stuff and I am stuck @ 41 errors. What I wa= nt to say is that it is important to clean up the CVS. Also make sure eve= rything compiles before you do a check-in into the CVS. For people who ju= st want to make a build from the current CVS, it is a problem. You need t= he sources of cryptlib(had to find it myself. i could not find it on the = homepage...). And you need to figure out why it does not compile. Could anyone help me what I need to do(a preparation) before I compile th= e whole stuff? Maybe it would be nice to put that all on the homepage. I = know developpers don't like documentation, but somethimes it is needed to= speed up the development of your project ;) What I also think is that it would be bad to create another module specia= lly for the final release. All should be @ one place, otherwise it will b= ecome confusing. thx Jixt P.S: Don't be mad :D. It is just an opinion of me. >----- Oorspronkelijk bericht ----- >Van : H=E9ctor Daniel Guajardo [mailto:A00...@it...] >Verzonden : donderdag , augustus 12, 2004 11:13 PM >Aan : bme...@li... >Onderwerp : Re: [bme-develop] Final BeMSN Release Progress > >Hello, > >Good work Simon, this is the first step into cleaning the cvs >repository. And speaking about that, what do you guys think about >importing this final release of BeMSN into it's own module in the CVS, >apart from the current mess in Bme? That way we can all contribute in >testing or whatever. > >Regards, >Daniel > >> Hi All, >> >> I've finally found a bit of time and a bit of motivation and have put = >> together a "final" release of BeMSN so we can finally get that out to = >> people, and then get CVS cleaned up. >> >> There were initially hundreds of build errors , but in fact not many >> changes needed making to get it to build sucessfully. >> >> I've also fixed a few bugs: >> -The windows appearing small in the top left is fixed >> -Chat windows don't visibly appear in one pace before instantly >> moving >> any more >> -Default path for the sounds is now "apppath/Sounds/online.wav" etc >> -Version number increased to 1.6 >> -Cryptlib timeout length altered (sometimes it seems >> cryptDestoySession >> hangs for the length of the timeout on my system - when the timeout >> was >> 2 minutes (as before) the server seems to give up on you and not >> allow >> you to sign in). >> -Update rate of statusbar in chat window altered so people who are >> typing for longer periods don't flash off breifly. >> >> It's currently in the testing phase (I had a crash early on in a >> conversation, not enough people have been talking to me to get me to >> reproduce it though). Once I track that bug down, it should be ready >> for release, hopefully by this weekend. Then we can finally get >> started >> on bme! >> >> Simon >> >> > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >bme-develop mailing list >bme...@li... >https://lists.sourceforge.net/lists/listinfo/bme-develop > > |
From: D. G. <A00...@it...> - 2004-08-12 23:13:40
|
Hello, Good work Simon, this is the first step into cleaning the cvs repository. And speaking about that, what do you guys think about importing this final release of BeMSN into it's own module in the CVS, apart from the current mess in Bme? That way we can all contribute in testing or whatever. Regards, Daniel > Hi All, > > I've finally found a bit of time and a bit of motivation and have put > together a "final" release of BeMSN so we can finally get that out to > people, and then get CVS cleaned up. > > There were initially hundreds of build errors , but in fact not many > changes needed making to get it to build sucessfully. > > I've also fixed a few bugs: > -The windows appearing small in the top left is fixed > -Chat windows don't visibly appear in one pace before instantly > moving > any more > -Default path for the sounds is now "apppath/Sounds/online.wav" etc > -Version number increased to 1.6 > -Cryptlib timeout length altered (sometimes it seems > cryptDestoySession > hangs for the length of the timeout on my system - when the timeout > was > 2 minutes (as before) the server seems to give up on you and not > allow > you to sign in). > -Update rate of statusbar in chat window altered so people who are > typing for longer periods don't flash off breifly. > > It's currently in the testing phase (I had a crash early on in a > conversation, not enough people have been talking to me to get me to > reproduce it though). Once I track that bug down, it should be ready > for release, hopefully by this weekend. Then we can finally get > started > on bme! > > Simon > > |
From: Sir M. <obe...@ho...> - 2004-08-11 16:31:48
|
Hi Simon! >I've finally found a bit of time and a bit of motivation and have put >together a "final" release of BeMSN so we can finally get that out to >people, and then get CVS cleaned up. > Nice work! >I've also fixed a few bugs: >-The windows appearing small in the top left is fixed What was the problem here? we should also change this in the bme code, since it has the same bug...but I think you'll upload the modified code to cvs? >It's currently in the testing phase (I had a crash early on in a >conversation, not enough people have been talking to me to get me to >reproduce it though). Once I track that bug down, it should be ready >for release, hopefully by this weekend. Then we can finally get started >on bme! > great want to start ASAP...right now I'm busy programming the profile information code....some of this information is needed for hotmail login regards, Tim _________________________________________________________________ Play online games with your friends with MSN Messenger http://messenger.msn.nl/ |
From: Simon T. <sim...@ga...> - 2004-08-11 16:28:02
|
> Hey Simon! > > someone just reminded me that none of the classes in your debug > code(NetListItem etc.) are not in CVS, could you please upload them, > it's > causing a lot of problems for people trying to build the > project...anyone > know how to remove files from CVS because we certainly need to do > some > cleaning up! Hey Tim, This is all coming after the final BeMSN release. Hopefully it will be sorted by the end of the weekend. The NetWatch files are not in CVS, true, but they're not referenced by any of the other source. You can just remove them from the project file and bme will build just fine. I'll add them now anyway though. In my development tree, I have them in Bme/src/NetWatcher/ - will that be ok? Simon > regards, > > Tim > > _________________________________________________________________ > Play online games with your friends with MSN Messenger > http://messenger.msn.nl/ > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > bme-develop mailing list > bme...@li... > https://lists.sourceforge.net/lists/listinfo/bme-develop |
From: Simon T. <sim...@ga...> - 2004-08-11 16:24:47
|
Hi All, I've finally found a bit of time and a bit of motivation and have put together a "final" release of BeMSN so we can finally get that out to people, and then get CVS cleaned up. There were initially hundreds of build errors , but in fact not many changes needed making to get it to build sucessfully. I've also fixed a few bugs: -The windows appearing small in the top left is fixed -Chat windows don't visibly appear in one pace before instantly moving any more -Default path for the sounds is now "apppath/Sounds/online.wav" etc -Version number increased to 1.6 -Cryptlib timeout length altered (sometimes it seems cryptDestoySession hangs for the length of the timeout on my system - when the timeout was 2 minutes (as before) the server seems to give up on you and not allow you to sign in). -Update rate of statusbar in chat window altered so people who are typing for longer periods don't flash off breifly. It's currently in the testing phase (I had a crash early on in a conversation, not enough people have been talking to me to get me to reproduce it though). Once I track that bug down, it should be ready for release, hopefully by this weekend. Then we can finally get started on bme! Simon |
From: Sir M. <obe...@ho...> - 2004-08-11 13:16:37
|
Hey Simon! someone just reminded me that none of the classes in your debug code(NetListItem etc.) are not in CVS, could you please upload them, it's causing a lot of problems for people trying to build the project...anyone know how to remove files from CVS because we certainly need to do some cleaning up! regards, Tim _________________________________________________________________ Play online games with your friends with MSN Messenger http://messenger.msn.nl/ |
From: Simon T. <sim...@ga...> - 2004-08-08 10:29:18
|
> > > > >Do we know his sf ID? > > > > Hi, > > > > My sf ID is '886204'. ;) > > Hi Jixt, > > Sorry, I meant your login name (mine is 'tangobravo') > > Simon Cancel that, I guessed "jixt" and it seems I am right :D Simon > > greetings > > Jixt > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by OSTG. Have you noticed the > > changes > > on > > Linux.com, ITManagersJournal and NewsForge in the past few weeks? > > Now, > > one more big change to announce. We are now OSTG- Open Source > > Technology > > Group. Come see the changes on the new OSTG site. www.ostg.com > > _______________________________________________ > > bme-develop mailing list > > bme...@li... > > https://lists.sourceforge.net/lists/listinfo/bme-develop > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes > on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? > Now, > one more big change to announce. We are now OSTG- Open Source > Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > bme-develop mailing list > bme...@li... > https://lists.sourceforge.net/lists/listinfo/bme-develop |
From: Simon T. <sim...@ga...> - 2004-08-08 10:20:13
|
> > >Do we know his sf ID? > > Hi, > > My sf ID is '886204'. ;) Hi Jixt, Sorry, I meant your login name (mine is 'tangobravo') Simon > greetings > Jixt > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes > on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? > Now, > one more big change to announce. We are now OSTG- Open Source > Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > bme-develop mailing list > bme...@li... > https://lists.sourceforge.net/lists/listinfo/bme-develop |
From: Jan-Rixt V. H. <jan...@pa...> - 2004-08-07 21:39:31
|
>Do we know his sf ID? Hi, My sf ID is '886204'. ;) greetings Jixt |
From: Simon T. <sim...@ga...> - 2004-08-07 17:53:46
|
> Hi, > > >I have plenty of ideas on this. > > > >Also about the Mac OSX screenshot - with the fancy BListView based > > conv > >window, that should be entirely possible. If I ever get round to > >writing it, that is. :) > > > Then start coding :P ;)....btw could you give Jixt CVS access? > Another > thing: we have to clean up cvs asap! AFAIK, we're all moderators so any of us can do it. Do we know his sf ID? I *promise* to do some sort of coding soon :D > regards, > > Tim > > _________________________________________________________________ > MSN Search, for accurate results! http://search.msn.nl > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes > on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? > Now, > one more big change to announce. We are now OSTG- Open Source > Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > bme-develop mailing list > bme...@li... > https://lists.sourceforge.net/lists/listinfo/bme-develop |
From: Sir M. <obe...@ho...> - 2004-08-07 16:01:28
|
Hi, >I have plenty of ideas on this. > >Also about the Mac OSX screenshot - with the fancy BListView based conv >window, that should be entirely possible. If I ever get round to >writing it, that is. :) > Then start coding :P ;)....btw could you give Jixt CVS access? Another thing: we have to clean up cvs asap! regards, Tim _________________________________________________________________ MSN Search, for accurate results! http://search.msn.nl |
From: Simon T. <sim...@ga...> - 2004-08-07 15:28:26
|
> Hi, > > >Ok no problem, next week I will have some time to chill and program > > for > >BeMSN ;) > > > Ok! if you're looking at a more challenging job you could also have a > look > at the TextView used to type messages to the other side: hyperlinks > have to > be highlighted and clickable in it and emoticons have to appear while > typing(just as MSN6.2 does) I have plenty of ideas on this. Also about the Mac OSX screenshot - with the fancy BListView based conv window, that should be entirely possible. If I ever get round to writing it, that is. :) Simon > regards, > > Tim > > _________________________________________________________________ > Talk with your online friends with MSN Messenger http://messenger.msn.nl/ > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes > on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? > Now, > one more big change to announce. We are now OSTG- Open Source > Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > bme-develop mailing list > bme...@li... > https://lists.sourceforge.net/lists/listinfo/bme-develop |
From: Sir M. <obe...@ho...> - 2004-08-07 15:04:56
|
Hi, >Ok no problem, next week I will have some time to chill and program for >BeMSN ;) > Ok! if you're looking at a more challenging job you could also have a look at the TextView used to type messages to the other side: hyperlinks have to be highlighted and clickable in it and emoticons have to appear while typing(just as MSN6.2 does) regards, Tim _________________________________________________________________ Talk with your online friends with MSN Messenger http://messenger.msn.nl/ |
From: Sir M. <obe...@ho...> - 2004-08-07 15:02:53
|
Hi, >About the browser issue - I'd target moz/firefox (by the time we get to >R1 of Bme I'm sure they'll be able to open links properly). For >testing, you can generate the temporary page and load moz/ff, then just >use file->Open File or whatever it's called. Ah ok, temporary file is already written, didn't know opening was possible in mozilla/firefox...have to add some parameters and MD5 encoding and then I think we've got hotmail integration for Bme! regards, Tim _________________________________________________________________ Play online games with your friends with MSN Messenger http://messenger.msn.nl/ |
From: Simon T. <sim...@ga...> - 2004-08-07 14:21:13
|
> Not yet, I think is the answer to that question, but the guys of the > bezilla > team are working hard to implement opening of files with mozilla/ > firefox, > that is the functionality I need....automatically opening a temporary > file > in a javascript capable browser with Launch! > > regards, > > > Tim Hi all, Back from holidays now. About the browser issue - I'd target moz/firefox (by the time we get to R1 of Bme I'm sure they'll be able to open links properly). For testing, you can generate the temporary page and load moz/ff, then just use file->Open File or whatever it's called. Simon |