• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:52
CET 23:52
KST 07:52
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy7ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool48Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
Potential Updates Coming to the SC2 CN Server What mix of new & old maps do you want in the next ladder pool? (SC2) Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (March 16-22): herO doubles, Cure surprises Weekly Cups (August 25-31): Clem's Last Straw?
Tourneys
WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April WardiTV Team League Season 10
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
Gypsy to Korea mca64Launcher - New Version with StarCraft: Remast BGH Auto Balance -> http://bghmmr.eu/ Soulkey's decision to leave C9 How much money terran looses from gas steal?
Tourneys
[ASL21] Ro24 Group C [Megathread] Daily Proleagues [ASL21] Ro24 Group B 2026 Changsha Offline Cup
Strategy
What's the deal with APM & what's its true value Fighting Spirit mining rates Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Darkest Dungeon Nintendo Switch Thread Stormgate/Frost Giant Megathread General RTS Discussion Thread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books Movie Discussion! [Manga] One Piece
Sports
Cricket [SPORT] 2024 - 2026 Football Thread Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1539 users

To C++ lovers and the like

Blogs > Raithed
Post a Reply
Raithed
Profile Blog Joined May 2007
China7078 Posts
April 29 2009 01:00 GMT
#1
I was brainstorming this with a friend of mine who is in the same major as I am. Basically, this project would be of our own doing and not for any class or whatever and we will be using C++ mainly to do this. I was wondering what we would need as in programming "skills" or whatever you'd like to call it, and other stuff to create this:

A chat client that would encode "blah" and while it transfers, "blah" it will add various hex into the ascii, then on the other side, receives the "blah" minus the hex.

It's an interesting idea though, isn't it? I have taken a C course years ago but I would love to get back into it because I enjoy programming.

*
CaucasianAsian
Profile Blog Joined September 2005
Korea (South)11595 Posts
April 29 2009 01:09 GMT
#2
do you mean something like AIM or MSN?
Calendar@ Fish Server: `iOps]..Stark
b3h47pte
Profile Blog Joined May 2007
United States1317 Posts
April 29 2009 01:24 GMT
#3
WinSock would probably be nice to know as well as the Win32 API or MFC.
And if you're interested in using .NET, that would be good to learn too.
CTStalker
Profile Blog Joined November 2004
Canada9720 Posts
April 29 2009 01:43 GMT
#4
there's already more than enough open source chat clients. your idea doesn't really make sense, though. so no, it's not an interesting idea
By the way, my name is Funk. I am not of your world
b3h47pte
Profile Blog Joined May 2007
United States1317 Posts
April 29 2009 01:51 GMT
#5
Well, you have to start somewhere. Obviously some ideas will be pretty retarded and will serve 0 purpose whatsoever, but programming SOMETHING is better than nothing.
Raithed
Profile Blog Joined May 2007
China7078 Posts
April 29 2009 01:52 GMT
#6
On April 29 2009 10:09 CaucasianAsian wrote:
do you mean something like AIM or MSN?

right now its only a thought stage but later on we'd want to implement it into AIM, but not msn(unicode).

On April 29 2009 10:43 CTStalker wrote:
there's already more than enough open source chat clients. your idea doesn't really make sense, though. so no, it's not an interesting idea


oh theres plenty, but do they do this?

person1 types blah.
blah goes through the server, etc, the blah gets attached hex onto it(so software, etc, cant read it).
person2 receives it as blah without the hex.
haduken
Profile Blog Joined April 2003
Australia8267 Posts
April 29 2009 02:33 GMT
#7
what is the point of the hex? are you trying to encrypt the message?

i made a very simple mirc like server/client for a university course. it is surprising not that difficult or long.
i did everything using C++ and POSIX sockets libary on linux.
my solution is multithreaded.

write down all the use cases before you start.
Rillanon.au
Raithed
Profile Blog Joined May 2007
China7078 Posts
April 29 2009 02:57 GMT
#8
On April 29 2009 11:33 haduken wrote:
what is the point of the hex? are you trying to encrypt the message?

i made a very simple mirc like server/client for a university course. it is surprising not that difficult or long.
i did everything using C++ and POSIX sockets libary on linux.
my solution is multithreaded.

write down all the use cases before you start.

yeah encrypting, etc. i mean its just something to do you know? hes starting to learn C++ on his own and i have some prior knowledge of it already. i have no idea what POSIX sockets are, id have to look into it. the "surprising not that difficult or long" is giving me some more interests.
haduken
Profile Blog Joined April 2003
Australia8267 Posts
April 29 2009 03:13 GMT
#9
There are many available C++ lib and framework (different programming models too)that cater for network programming. POSIX is a set of standards for UNIX libs that comes with development packages.
It is also available under Windows but I heard that it is not as mature as UNIX base. Network socket programming is very low level, i don't recommend it for real programming but can be interesting for students who are into that sort of stuff.

Rillanon.au
Raithed
Profile Blog Joined May 2007
China7078 Posts
April 29 2009 03:23 GMT
#10
low level, such as assembly?
0xDEADBEEF
Profile Joined September 2007
Germany1235 Posts
Last Edited: 2009-04-29 05:17:55
April 29 2009 05:13 GMT
#11
On April 29 2009 12:23 Raithed wrote:
low level, such as assembly?


No, low-level in the sense that you have to make do without libraries which offer convenient functions which get most of the stuff done for you. Low-level in a high-level language context means using the most basic of tools/functions available to you (i.e. those that are directly available without installing (and requiring from the user) to install additional libs). The upside of this is of course that you have much more control over the gory details. The downside is that it requires more code, is more error-prone and often boring and time-intensive. You decide.

Writing a chat client is pretty easy though, at least the basics. I think that's one of the first things someone who just gets into network programming does: a very basic client/server chat program.
Just know that the well-known chat services like MSN, ICQ, AIM etc. all use special protocols, so if you want to write a client that's compatible with these networks, you'd have to make sure your client sends the data in a special way so that the server accepts it.
Also know that if you really want to do encryption you better do it the right way and use good libraries (e.g. openssl) which handle all the details for you, because what you intend to do (converting data into hex and back?) is everything but safe. At least use something like RC4.
Of course things get much more complicated if you also wanted to include a modular structure, plugins maybe, if the code size generally becomes big enough (few thousand lines), if you want to add a nice GUI, or if you start adding a lot of features. But the basic thing is really easy. And considering your questions here, you should start very basic.
Raithed
Profile Blog Joined May 2007
China7078 Posts
April 29 2009 05:16 GMT
#12
yeah we are starting something very very simple, like D- newbie shit. thanks for the help though. but what does XOR or RC4 mean?
0xDEADBEEF
Profile Joined September 2007
Germany1235 Posts
April 29 2009 05:24 GMT
#13
Forget about (lone) XOR. RC4 see Wikipedia. In short: it's a simple to implement encryption method which is better than if you were to "invent" a new encryption type.
But encryption stuff generally is hard so you should absolutely use a lib for that.
DeathSpank
Profile Blog Joined February 2009
United States1029 Posts
April 29 2009 05:44 GMT
#14
oh silly kids...you're in above your heads....try writing the encryptor first...
yes.
haduken
Profile Blog Joined April 2003
Australia8267 Posts
April 29 2009 07:25 GMT
#15
the basics of a server/client chat program should take you no more than 2 man weeks to write.
msg me if you want some ideas.
Rillanon.au
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
Last Edited: 2009-04-29 12:41:53
April 29 2009 12:39 GMT
#16
Is it difficult to implement RSA? I'd use that as a first choice if I really had to do some sort of encryption, because it won't be broken in 5 seconds.

If you're simply attaching some hex to the end of a message after it's been sent and removing it before it's viewed, I think that would be useful for covert communication between the two computers (such as botnet commands, perhaps, or protecting a communicator's identity).
Compilers are like boyfriends, you miss a period and they go crazy on you.
Sirakor
Profile Joined April 2003
Great Britain455 Posts
April 29 2009 19:19 GMT
#17
On April 29 2009 21:39 BottleAbuser wrote:
Is it difficult to implement RSA? I'd use that as a first choice if I really had to do some sort of encryption, because it won't be broken in 5 seconds.


The math is simple enough, but implementing it well, efficient and secure is not trivial. I'd certainly go with OpenSSL as was already suggested.

Much more important than the little details is the planning for you guys. Spend sufficient time laying out a specification for the program, lay out all use cases, all features and everything you could possibly ever want. Then prioritize and make a roadmap. Sure things won't go according to plan, the less experience you have, the less according to plan it will be, but at least you have a sense of where you're going and how far you have progressed.

Maybe it's obvious, but as you're just starting out I'll point it out nevertheless: you want to use version control, e.g. SVN. Especially if the project is likely to be more than a few 100 lines and has more than one person working on it. Otherwise failure is inevitable ;-)

And, if it's not too much to get your head around at the beginning (I don't know your background), consider test-driven development. Make it a compulsive habit, eventually you'll be very glad you did.
Please log in or register to reply.
Live Events Refresh
OSC
18:00
OSC Elite Rising Star #18
SteadfastSC110
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Liquid`TLO 349
UpATreeSC 138
SteadfastSC 110
SC2Nice 10
StarCraft: Brood War
Backho 60
soO 23
NaDa 6
Super Smash Bros
hungrybox208
C9.Mang0184
PPMD20
Other Games
summit1g8390
tarik_tv4187
Grubby2403
shahzam406
ToD72
ViBE33
Organizations
Other Games
BasetradeTV68
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• davetesta27
• Reevou 7
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• RayReign 42
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV962
• lizZardDota281
League of Legends
• Doublelift3097
Other Games
• imaqtpie716
• Scarra691
• Shiphtur104
Upcoming Events
Replay Cast
1h 9m
WardiTV Team League
13h 9m
Big Brain Bouts
18h 9m
Fjant vs SortOf
YoungYakov vs Krystianer
Reynor vs HeRoMaRinE
RSL Revival
1d 11h
Cure vs Zoun
herO vs Rogue
WardiTV Team League
1d 13h
Platinum Heroes Events
1d 16h
BSL
1d 21h
RSL Revival
2 days
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
2 days
BSL
2 days
[ Show More ]
Replay Cast
3 days
Replay Cast
3 days
Afreeca Starleague
3 days
Light vs Calm
Royal vs Mind
Wardi Open
3 days
Monday Night Weeklies
3 days
OSC
4 days
Sparkling Tuna Cup
4 days
Afreeca Starleague
4 days
Rush vs PianO
Flash vs Speed
Replay Cast
5 days
Afreeca Starleague
5 days
BeSt vs Leta
Queen vs Jaedong
Replay Cast
6 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-03-25
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

2026 Changsha Offline CUP
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.