• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

WZ IOCP and Windows SDK Samples

Status
Not open for further replies.
Junior Spellweaver
Joined
Jul 30, 2005
Messages
176
Reaction score
110
I'm currently working in IOCP scenario, so I decided to look over WZ IOCP functions. Works well, some code mistakes, but nothing really bad. The funny part is that I decide to check it out the IOCP samples from Windows SDK. After couple lines I have felt a strange "Déjà vu"...

PGZJE - WZ IOCP and Windows SDK Samples - RaGEZONE Forums


V81Qc - WZ IOCP and Windows SDK Samples - RaGEZONE Forums


Usage of WSDK Samples isn't ugly, but forgot to remove the unreferenced bAddToList arg from UpdateCompletionPort function ? :rofl:
 

Attachments

You must be registered for see attachments list
NN - Nord & Noob
Loyal Member
Joined
Jul 15, 2004
Messages
1,207
Reaction score
689
i cant understand, why need try create a new bike. U got sample and and if dont need nothing more then it is, edit it, add poop to it and job done ;)

Start make money selling wcoins :D
 
Junior Spellweaver
Joined
Jul 30, 2005
Messages
176
Reaction score
110
i cant understand, why need try create a new bike. U got sample and and if dont need nothing more then it is, edit it, add poop to it and job done ;)

Start make money selling wcoins :D

Who says that I'm trying to create a new bike ? This is just to show that WZ uses WSDK samples... nothing more ! :argh:

:closed_2:
 
Elite Diviner
Joined
Sep 28, 2005
Messages
419
Reaction score
105
Btw Young, in that .65 source you have also dataserver src? :)
 
Last edited by a moderator:
Newbie Spellweaver
Joined
Mar 12, 2006
Messages
59
Reaction score
96
WebZen IOCP works pretty fine, it's nice to study ^^

I plan on making my own online game someday in the future, and I'll obviously go on IOCP communication, it's pretty efficient and C++ is by far the best programming languagem (if we exclude ASM, wich is not for normal humans! kkkkkkkk) to achieve good performance.

And yes, WebZen IOCP is a copy-paste from Windows SDK samples kkkkkkkk.

The object (on ObjectStruct) Socket Management is ugly, just to meet the same WinSDK usage, anyway, works fine. ^^
 
NN - Nord & Noob
Loyal Member
Joined
Jul 15, 2004
Messages
1,207
Reaction score
689
i never checked IOCP, but its must be own thread for each client.
Nothing hard ^_^ BlurCode made a L2 emulator in Delphi and IOCP made with Indy ^_^ from 0 :) thats the skill power
 
Junior Spellweaver
Joined
Jul 30, 2005
Messages
176
Reaction score
110
i never checked IOCP, but its must be own thread for each client.
Nothing hard ^_^ BlurCode made a L2 emulator in Delphi and IOCP made with Indy ^_^ from 0 :) thats the skill power

IOCP isn't easy to implement. Needs advanced knowledge of sockets and multithreading. Also need handle exceptions, resend undelivered packets and reordering messed up packets.

Ps.: Compare Delphi (HiLevel) with C (LowLevel) is something that you never should do.
 
NN - Nord & Noob
Loyal Member
Joined
Jul 15, 2004
Messages
1,207
Reaction score
689
Even worst either best lib can be a totaly poop and very good ;) all depend on developer ;) if u dont understand code u are fucked anyway

Learn, learn, learn and again learn :)
 
Status
Not open for further replies.
Back
Top