Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 General

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 25.05.2006, 14:37   #12
torune
Архивный участник
 
Join Date: Jul 2005
Posts: 371
Default

for time critical stuff, i like to save as much as i can
a single function call also takes couple cpu circle.

Code:
bool CIOCP::RequestAuthLogin(IOCP_IO_PTR lp_io, BYTE* pData)
{
	char* pname, *ppass;
	BYTE *pBuffer, *pBuffEx, *pPwd;
	int length;
	//printf("RequestAuthLogin\n");
	pBuffer = pData;
	pname = (char*)pBuffer;
	pBuffer += 14;
	ppass = (char*)pBuffer;

	pPwd = (BYTE*)GlobalAlloc(GMEM_ZEROINIT, 16);	
	getPwd(ppass, pPwd, lstrlenA(ppass));

.............

void __inline CIOCP::getPwd(char * pData, BYTE* pOut, int length)
{
	UINT key[16];
	UINT dst[16];
	int i = 0, nBytes = length + 1;
.......
}
and will it become opensource or not, I wont be able to answer it atm.
torune 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 06:07.