Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 28.01.2006, 03:04   #5
drugolo
Архивный участник
 
Join Date: Jun 2005
Posts: 93
Default

the problem is another:
L2J: uses NIO = 1 Thread = 1 Socket
L2off: uses IOCP (overlapped ports, works only with win2k3, win2k and, limited, winXP): 1 Thread = N Sockets (usually is 2 Threads for every CPU plus 1 Thread dedicated to the "Accept" of the connection request from the client)

The cause that makes L2J sink is just this (and also bad coding, but the bigger thing is this). Of course no way to do IOCP under Java (too much "free-OS" language), same for Mono (on Linux IOCP doesn't exists, but someone said me that is possible to do something like this on openBSD... dunno.)
In C++/Delphi/C#/VB, instead, you can do it.

L2d, my freezed "porting" of l2j to delphi (but using DB of L2off), is using IOCP and i have successfully tested it with I/O with 10k users connected for 1 hour... (just junk data,don't think that was working with the L2 client!!)

If there are Delphi developers, it will be nice to resume the L2d project... (working alone is sad). Actually implemented:
Log system
IOCP system
Packets Encrypt\Decrypt
something else...
drugolo is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:22.