Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8684665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:21:54+00:00 2026-06-12T22:21:54+00:00

Ok so i wrote a c++ websocket server took a while but i think

  • 0

Ok so i wrote a c++ websocket server took a while but i think i did good job for a intermediate programmer but have a question my friend suggested that i use hash_map from the namespace __gnu_cxx; it all builds fine and what not i just want to know say i need to change a users name in one of the user fields would it update just by doing this

_userslist[id].name = “BlaBla Bla”;

or would i need to replace the entire field with a copy but with name changed.

i would try it but when ever i take the server down all my members moan and moan so thought id ask here 🙂

Thanks
Dave

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:21:55+00:00Added an answer on June 12, 2026 at 10:21 pm

    Most likely _userslist[id] will return a WinUser&, assuming _userslist is not const in this context. If name is a public member of WinUser that has an operator= that takes a const char * (or something const char * can convert into), then it will work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have wrote my websocket server class and wrote ServerPiplineFactory class but I don't
I wrote a simple EventMachine server like this one: EventMachine.run do EventMachine::WebSocket.start(:host => HOST,
I wrote a (not-so-)simple websocket server in python, which listens in a port, performs
I have read a similar question , but my problem wasn't solved. I am
I wrote a websocket server in c++ that works fine with websocket protocol 00
This is mostly an experiment , but I do think it does have some
I'm trying to set up a websocket server in node.js but having problems. I
I want to create my own WebSocket server, but it will only include a
When doing new WebSocket('ws://server/'); Safari connects fine, but when using new WebSocket('wss://server/'); it completely
I was trying to make a Read\Write function for websocket but i've a problem...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.