[VB6] - Multi-User Chat Example (Winsock) - Page 4-VBForums
Page 4 of 6 FirstFirst 123456 LastLast
Results 121 to 160 of 213

Thread: [VB6] - Multi-User Chat Example (Winsock)

  1. #121
    Junior Member
    Join Date
    Mar 2008
    Posts
    31

    Re: [VB6] - Multi-User Chat Example (Winsock)

    can't waite looks great

  2. #122
    Member
    Join Date
    May 2008
    Location
    Moorhead, MN
    Posts
    37

    Re: [VB6] - Multi-User Chat Example (Winsock)

    If you are trying to set up a type of buddy list you are going to be better off going with a DB setup... The setup he has resets everything once the program is close I don't see how it would support friends unless everything was set to save to a text file but thats going to be a lot of text files Unless of course you dont mind that the buddy list is reset everytime... and since there is no login password anyone could potentially use that persons nickname so eventhough the person who used that name the first time might be your friend... the next person who uses it may not if you understand what I mean... there is an example if you scroll back to one of the previous pages. It has a buddy list and a DB you might want to check it out to get some ideas.
    -- Josh Smith
    C#, VB, PHP, SQL

  3. #123
    Junior Member
    Join Date
    Mar 2008
    Posts
    31

    Re: [VB6] - Multi-User Chat Example (Winsock)

    actually couldn't you have all of your settings, buddy list, and all that be saved in one text file to reduce the amount. if organized properly it would work.

  4. #124
    Fanatic Member
    Join Date
    Aug 2003
    Posts
    595

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Quote Originally Posted by minidesigner
    actually couldn't you have all of your settings, buddy list, and all that be saved in one text file to reduce the amount. if organized properly it would work.
    reduce the ammount of what? I would think having all info in 1 file would make it take more space, seperate txt files would work better if your d oing it that way with all those txt files in there own folder per user.

  5. #125
    Junior Member
    Join Date
    Mar 2008
    Posts
    31

    Re: [VB6] - Multi-User Chat Example (Winsock)

    actually a txt file really isn't that large of a file especially with the info we're talking about saving in it. i could be wrong on that i'll have to test the theory but we have txt files at my office, actually the extention is mdf. okay my bad after looking at them closer they are database files but still they open as text files just with a specific format. anyway my point is the largest file is 1936 lines, you could use a standard txt file but your right as it would take more code to do than using data access in vb. sorry for type o's and me not using my brain.

  6. #126
    Member
    Join Date
    May 2008
    Location
    Moorhead, MN
    Posts
    37

    Re: [VB6] - Multi-User Chat Example (Winsock)

    My only point is that say that Fred adds Joe as a buddy... Joe doesn't use the nickname Joe the next time he logs in and instead uses JOEY111 and a guy named Tom logs in as Joe... Unless the server is going to log all the users by IP and determine who the actual buddy is anyone could log in as your "buddy" and you wouldn't know it wasn't them unless you require a password... If you are using the basic VB chat that was created in my opinion (and maybe I am wrong) but, it seems a little silly to be using a buddy list as anyone could login as your buddy and your buddy could login as any other username... That was my only point for using a database in comparison to a text file.. and the basic client side doesn't have get IP addresses for other users from the server so you would be better off doing the buddy list portion server side anyways just like in SIM chat.
    -- Josh Smith
    C#, VB, PHP, SQL

  7. #127
    Fanatic Member
    Join Date
    Aug 2003
    Posts
    595

    Re: [VB6] - Multi-User Chat Example (Winsock)

    other thing to think about is if you use a txt file say in sim/onlinebuddys.txt

    inside that txt file is 150 online buddys. buddy number 83 sign's off. you now have to recreate that txt file everytime someone signs on or off ;]

  8. #128

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Database is the best way.

    You could store account information in .txt files. And keep buddy lists/contacts in memory and never save them to file.

    You could either have one big text file with all accounts (or INI file), or a separate one for each user (probably not a good idea).

    A simple database makes things a lot easier though.

  9. #129
    Lively Member
    Join Date
    Feb 2008
    Posts
    87

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Very nice Job DigiRev... Im looking forward to look at ur finished project...

    A nice function to ur chat would be the microphone chat to make users able to talk... Hard to make but it would be nice... good luck

  10. #130
    Fanatic Member
    Join Date
    May 2004
    Posts
    566

    Re: [VB6] - Multi-User Chat Example (Winsock)

    say the users whole friends list is in a database like this: kyle,john,mark
    all separated by commas.

    how would you determine the users online/offline friends(how to tell which ones are online and offline) and send the online friends, then send the offline ones?

    or am i thinking of this totally the wrong way?
    if you helped me, consider yourself thanked

  11. #131
    Member
    Join Date
    May 2008
    Location
    Moorhead, MN
    Posts
    37

    Re: [VB6] - Multi-User Chat Example (Winsock)

    If you look at the Sim Chat example there is a column labeld is_online which has either a value of 0 or 1 0 being offline 1 being online that is the way i would do it, it is stored in the users table with the users username and password
    -- Josh Smith
    C#, VB, PHP, SQL

  12. #132
    Member
    Join Date
    May 2008
    Location
    Moorhead, MN
    Posts
    37

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Well here is a huge revamp from my previous version. Please let me know if you find any bugs or have any suggestions. Feedback is much appreciated!

    If you are trying to use the e-mail feature you will need to edit the SendMail sub and enter your gmail user account information. The only thing that is not functional server side is the chatrooms feature that is still a work in progress. Ignore any foul language in the code it is mostly me talking to myself. The main server is online so feel free to connect if you have questions or want to talk.

    Thanks!
    Attached Files Attached Files
    -- Josh Smith
    C#, VB, PHP, SQL

  13. #133

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Sorry guys. 2-3 more days (on Monday/Tuesday), and that is the final deadline. If it is not done by then, you can shoot me.

    I decided to make it IM based, with user registration, database, and contact/buddy list since a lot of people seem to wonder how that is done. I am new to databases in VB myself but I am using the ADO 2.8 library and have most of it working after reading the tutorial in the CodeBank.

    The only downside is you will need to register an account for every server you connect to. But I am making the registration as simple as possible, just username/email/password and password recovery question/answer.

    Only accounts, contact lists, and ignore lists will be saved in the database. The rest will be done in memory on the server (who is online, offline, etc.).

    This is a big project so it might be hard to learn from like this one. I am going to try & keep things as simple as possible, but some things might be done a little harder for the sake of performance.

    I hope it will be worth the wait. This will be like a Yahoo! Messenger clone with a lot of the same features. No voice chat in this release, though. I may do that as an update when I can take the time to sit down with it and make it work. I will also try to post some screen shots soon before it's released.
    Last edited by DigiRev; Jun 13th, 2008 at 03:54 AM.

  14. #134
    New Member
    Join Date
    Jun 2008
    Posts
    2

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Hello all.
    I was reading the post talking about the techinque you use to ban a client. Well, your proposal was to ban the IP but I have to say that this is not such smart way to ban a client given mostly simply have a dynamic IP so that the banned one has just to disconnect his modem getting a new IP and voila.

    I'm talking about this argument to preserve the server and the lobby chat from hackers attach or anyway all those people who wants to annoy or crash the environment. Then my question is: is there a better way to know exactly the source of data from a client in order to ban it definitely?
    Of course I'm talking about safety problems.

  15. #135

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: [VB6] - Multi-User Chat Example (Winsock)

    You can make your client send a hardware GUID (like hard drive # or something) and then ban that. Or ban an IP range...That is how a lot of anti-cheat software works in games (PunkBuster).

    But if you plan to send a hardware GUID or any personal info like that you should warn the user before they use/install your program.

  16. #136
    Fanatic Member
    Join Date
    May 2007
    Location
    Merced
    Posts
    864

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Or you can have it where when the user "signs up" it uploads there username into a database/file and when that user gets banned you can have a ban list. This way the username cannot be used again becuase it is in the datatbase.

  17. #137
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: [VB6] - Multi-User Chat Example (Winsock)

    But that doesn't prevent the user from creating another username
    Delete it. They just clutter threads anyway.

  18. #138
    Fanatic Member
    Join Date
    May 2007
    Location
    Merced
    Posts
    864

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Yes but the user can just go on a differnt computer and create a new username and get around this. The user also can use ip software that gives them new ip information that hides there orignal one. There is still many go arounds to this...

  19. #139
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: [VB6] - Multi-User Chat Example (Winsock)

    But most people wouldn't go that far.
    There is no way to make a fool proof ban system.
    In most cases an IP ban will be more than enough.
    Delete it. They just clutter threads anyway.

  20. #140
    New Member
    Join Date
    Jun 2008
    Posts
    2

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Quote Originally Posted by DigiRev
    You can make your client send a hardware GUID (like hard drive # or something) and then ban that. Or ban an IP range...That is how a lot of anti-cheat software works in games (PunkBuster).

    But if you plan to send a hardware GUID or any personal info like that you should warn the user before they use/install your program.

    ty Digirev but here my questions:

    1) Why should I warn the user? I mean, do you think such actitude is under right?And if it's under right then what the users might do against me?
    2) How to get those hardware informations by using Vb?
    3) How a client might protect itself from being tracked that way?

    ty in advance

  21. #141

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Quote Originally Posted by Calaf
    ty Digirev but here my questions:

    1) Why should I warn the user? I mean, do you think such actitude is under right?And if it's under right then what the users might do against me?
    2) How to get those hardware informations by using Vb?
    3) How a client might protect itself from being tracked that way?

    ty in advance
    Anytime that personal information might be sent by your program, you should let the user (and may actually be required by law to tell them but I don't know). Things like PunkBuster which is an anti-cheat system for games tells the user. It is up to you, though.

    There is a submission in the code bank to get hard drive serial # (and also some more on www.pscode.com/vb). Some serial #'s can be changed, but the one in the CodeBank gets the one put in there by the hard drive manufacturer which cannot be changed.

    There are a few ways. If you use the # that can't be changed then I'm not aware of any way to spoof that.

    If you take programs like OlyDbg into account, people can debug/reassemble your program to send off a different hardware ID, which is not actually very hard. Finding ways around that are hard, but there are some programs you can use to help.

  22. #142
    Member
    Join Date
    May 2008
    Location
    Moorhead, MN
    Posts
    37

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Any updates digi? any expected completion date?
    -- Josh Smith
    C#, VB, PHP, SQL

  23. #143
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: [VB6] - Multi-User Chat Example (Winsock)

    *shoot, shoot*
    Delete it. They just clutter threads anyway.

  24. #144

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: [VB6] - Multi-User Chat Example (Winsock)

    I finished it yesterday (Tuesday ). I ran across a few bugs and am fixing those now then gonna package it and upload it...

  25. #145
    Fanatic Member
    Join Date
    Aug 2003
    Posts
    595

    Re: [VB6] - Multi-User Chat Example (Winsock)

    post screen shots too =)

  26. #146
    Fanatic Member
    Join Date
    May 2004
    Posts
    566

    Re: [VB6] - Multi-User Chat Example (Winsock)

    is it done yet?
    if you helped me, consider yourself thanked

  27. #147
    Lively Member
    Join Date
    Feb 2008
    Location
    Denmark
    Posts
    113

    Re: [VB6] - Multi-User Chat Example (Winsock)

    he didnt say which Monday, tuesday it where.. lol

    I hope it get done soon

  28. #148

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: [VB6] - Multi-User Chat Example (Winsock)

    It is done. Hard drive went dead (I have the worst luck) but thankfully I have everything backed up on DVDs so nothing is lost (except a lot of other stuff but not vbChat).

    Thanks for being so patient. It will be worth the wait, though, for sure. Getting my programs re-installed now, and then I'm going to prepare an installation and make sure everything is in order then I will upload it.

  29. #149
    Junior Member
    Join Date
    Mar 2008
    Posts
    31

    Re: [VB6] - Multi-User Chat Example (Winsock)

    good luck

  30. #150
    Fanatic Member
    Join Date
    May 2004
    Posts
    566

    Re: [VB6] - Multi-User Chat Example (Winsock)

    3 days later....
    if you helped me, consider yourself thanked

  31. #151
    Member
    Join Date
    May 2008
    Location
    Moorhead, MN
    Posts
    37

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Digi are you still alive? Everything going well...? Any new expected release?
    -- Josh Smith
    C#, VB, PHP, SQL

  32. #152
    Fanatic Member
    Join Date
    May 2004
    Posts
    566

    Re: [VB6] - Multi-User Chat Example (Winsock)

    DigiRev, what's up with it??
    Last edited by emyztik; Jul 3rd, 2008 at 09:54 PM.
    if you helped me, consider yourself thanked

  33. #153
    Addicted Member
    Join Date
    Mar 2003
    Posts
    206

    Re: [VB6] - Multi-User Chat Example (Winsock)

    I just spoke to DigiRev. The whole thing is complete but he's having Computer issues (complete system crash) and cannot use it at the moment nor can he access it, obviously.

    Give him a bit, guys.

  34. #154
    Lively Member
    Join Date
    Nov 2007
    Location
    Rochester, NY
    Posts
    111

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Sata cables + Another box = Recovery of data files
    Please use the search function prior to posting a question and see if someone's already answered it.
    -If I helped you, please rate me, as I'd do the same for you =)
    -Remember to select the Resolved option for your post when you've gotten the answers you need.

  35. #155
    Member
    Join Date
    Jul 2008
    Posts
    36

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Everything is on that old hard drive, password to my DigiRev account, e-mail address, all my programming stuff, etc. I had that computer since about 1998 so it was just a matter of time before it went wrong...but man...bad timing! I had just created a webpage for it and installation program.

    It will be worth the wait, trust me. Very similar to Yahoo! Messenger/Skype, etc. so if you ever wondered how a lot of the features in those work, you will get to see soon.

    Thanks for being patient.

  36. #156
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Why don't you request a new password?
    Delete it. They just clutter threads anyway.

  37. #157
    Addicted Member
    Join Date
    Apr 2008
    Posts
    198

    username password

    hi all
    how can i use vb6 to get windows password of the login username?

  38. #158
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: username password

    Quote Originally Posted by yosef_mreh
    hi all
    how can i use vb6 to get windows password of the login username?
    Only post in existing threads if your question is relevant to the thread's subject. Otherwise create a new thread.
    Delete it. They just clutter threads anyway.

  39. #159
    Member
    Join Date
    Jul 2008
    Posts
    36

    Re: [VB6] - Multi-User Chat Example (Winsock)

    Quote Originally Posted by TheBigB
    Why don't you request a new password?
    Because the password to my e-mail is on that hard drive also...

  40. #160
    Fanatic Member
    Join Date
    Aug 2003
    Posts
    595

    Re: [VB6] - Multi-User Chat Example (Winsock)

    how can you not remember your password? lols.

Page 4 of 6 FirstFirst 123456 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.