Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 23.07.2006, 20:55   #1
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default L2Authd & L2Server Comunication.

Well ppl, I'm stablishing a connection btw the L2Authd and Simulated L2Server.
I dunno if someone did it some time, but if someone have some info about data Sended and Recived it will be a great Help.

Thx in advance.
RipperX is offline  
Old 23.07.2006, 22:59   #2
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default Re: L2Authd & L2Server Comunication.

Quote:
Originally Posted by RipperX
Well ppl, I'm stablishing a connection btw the L2Authd and Simulated L2Server.
I dunno if someone did it some time, but if someone have some info about data Sended and Recived it will be a great Help.

Thx in advance.
Noone answer me so, I answer myself.
This code only show "*new world added", but the ServerList is with STAT "Down".

Code:
void LoginConnection()
{
	char Buffer[255];
	LoginSocket = socket(AF_INET,SOCK_STREAM,0);
	LoginAddr.sin_addr.s_addr = inet_addr(GetLoginIp().c_str());
	LoginAddr.sin_family = AF_INET;
	LoginAddr.sin_port = htons((u_short)atoi(GetLoginPort().c_str()));
	cout<<"Connecting To Login Server ("<<ntohs(LoginAddr.sin_port)<<") ..."<<endl;
	connect(LoginSocket,(LPSOCKADDR)&LoginAddr,sizeof(LoginAddr));
	send(LoginSocket,"\x02\x04\x05\xB4\x01\x01\x04\x02",8,0);
}
RipperX is offline  
Old 23.07.2006, 23:03   #3
[drzoom]
Архивный участник
 
Join Date: Jul 2006
Posts: 65
Default

Useful info
[drzoom] is offline  
Old 24.07.2006, 00:02   #4
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Optimized code, now the unique problem is that it's show me Server Down =(
RipperX is offline  
 


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 19:12.