diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-06 10:57:31 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-06 10:57:31 +0000 |
commit | 23867efcc4336f811cf6c424a62110d514ee8293 (patch) | |
tree | 4673f54ec683ac6772ec3d3534d29d088ea916cf /src/common/socket.h | |
parent | 49b620d06a9b5c835e97aa238b42d5d56743e6fb (diff) | |
download | hercules-23867efcc4336f811cf6c424a62110d514ee8293.tar.gz hercules-23867efcc4336f811cf6c424a62110d514ee8293.tar.bz2 hercules-23867efcc4336f811cf6c424a62110d514ee8293.tar.xz hercules-23867efcc4336f811cf6c424a62110d514ee8293.zip |
- Messages with server_tick field are sent as soon as possible now.
This might fix client synchronization issues.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9415 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/socket.h')
-rw-r--r-- | src/common/socket.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/socket.h b/src/common/socket.h index 9552575f3..2c0412a9e 100644 --- a/src/common/socket.h +++ b/src/common/socket.h @@ -67,6 +67,8 @@ extern time_t stall_time; #define WFIFOL(fd,pos) (*(unsigned long*)WFIFOP(fd,pos)) // use function instead of macro. //#define WFIFOSET(fd,len) (session[fd]->wdata_size = (session[fd]->wdata_size + (len) + 2048 < session[fd]->max_wdata) ? session[fd]->wdata_size + len : session[fd]->wdata_size) +#define WFIFOSET(fd,len) _WFIFOSET(fd,len,0) +#define WFIFOSET2(fd,len,flush) _WFIFOSET(fd,len,flush) #define WBUFP(p,pos) (((unsigned char*)(p)) + (pos)) #define WBUFB(p,pos) (*(unsigned char*)((p) + (pos))) #define WBUFW(p,pos) (*(unsigned short*)((p) + (pos))) @@ -149,7 +151,7 @@ int make_connection(long,int); int delete_session(int); int realloc_fifo(int fd,unsigned int rfifo_size,unsigned int wfifo_size); int realloc_writefifo(int fd, size_t addition); -int WFIFOSET(int fd,int len); +int _WFIFOSET(int fd,int len,char flush); int RFIFOSKIP(int fd,int len); int do_sendrecv(int next); |