summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-17 13:23:34 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-17 13:23:34 +0000
commit3a4984a967675b1fd10c84730994bf08766c639d (patch)
tree00be3127a35d41ecbf1cb8f3b56922cd3575f36b /src/login
parent1110866d367cb7a158e0b4c9dc2a16e15d3ca90d (diff)
downloadhercules-3a4984a967675b1fd10c84730994bf08766c639d.tar.gz
hercules-3a4984a967675b1fd10c84730994bf08766c639d.tar.bz2
hercules-3a4984a967675b1fd10c84730994bf08766c639d.tar.xz
hercules-3a4984a967675b1fd10c84730994bf08766c639d.zip
* Added flag.server to indicate interserver sockets
- replaces the previous way (setting 'client_addr' to 0) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11930 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login')
-rw-r--r--src/login/admin.c2
-rw-r--r--src/login/login.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/login/admin.c b/src/login/admin.c
index 0babf1e30..152c9e84d 100644
--- a/src/login/admin.c
+++ b/src/login/admin.c
@@ -45,7 +45,7 @@ int parse_admin(int fd)
char ip[16];
ip2str(ipl, ip);
- if( session[fd]->eof )
+ if( session[fd]->flag.eof )
{
do_close(fd);
ShowInfo("Remote administration has disconnected (session #%d).\n", fd);
diff --git a/src/login/login.c b/src/login/login.c
index 714eb178b..9a6f61c0b 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1230,7 +1230,7 @@ int parse_fromchar(int fd)
return 0;
}
- if( session[fd]->eof )
+ if( session[fd]->flag.eof )
{
ShowStatus("Char-server '%s' has disconnected.\n", server[id].name);
online_db->foreach(online_db, online_db_setoffline, id); //Set all chars from this char server to offline.
@@ -1820,7 +1820,7 @@ int parse_login(int fd)
uint32 ipl;
char ip[16];
- if( session[fd]->eof )
+ if( session[fd]->flag.eof )
{
do_close(fd);
return 0;
@@ -2059,7 +2059,7 @@ int parse_login(int fd)
WFIFOSET(fd,3);
session[fd]->func_parse = parse_fromchar;
- session[fd]->client_addr = 0;
+ session[fd]->flag.server = 1;
realloc_fifo(fd, FIFOSIZE_SERVERLINK, FIFOSIZE_SERVERLINK);
send_GM_accounts(fd); // send GM account to char-server