V-InternalStructs.asm
资源名称:VeMU.rar [点击查看]
上传用户:santakups8
上传日期:2021-03-23
资源大小:544k
文件大小:3k
源码类别:
模拟服务器
开发平台:
Asm
- ;EasyCodeName=Module1,1
- ;-----------------------------------------------------------------------------------
- ; VeMU
- ; Its a package that allows the user to set his own server of the game
- ; "MuOnline", this is not an emulator since i am not "emulating"
- ; what the actual games does, i am "creating" a method for set a Server
- ; of this Game.
- ;
- ; Copyright (C) 2010 FelipeYa馿z
- ;
- ; This program is free software: you can redistribute it and/or modify
- ; it under the terms of the GNU General Public License as published by
- ; the Free Software Foundation, either version 3 of the License, or
- ; (at your option) any later version.
- ;
- ; This program is distributed in the hope that it will be useful,
- ; but WITHOUT ANY WARRANTY; without even the implied warranty of
- ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ; GNU General Public License for more details.
- ;
- ; You should have received a copy of the GNU General Public License
- ; along with this program. If not, see http://www.gnu.org/licenses/.
- ;-----------------------------------------------------------------------------------
- ;-----------------------------------------------------------------------------------
- ; -----------------
- ; Coded /
- ; By /
- ; -={FeN$x)=-
- ; / Felipe Y.
- ; /
- ; -----------------
- ; Programming Lang: ASM
- ; Country: Chile
- ; My respect for all those who lost their lifes
- ; In the earthquake of my country...
- ; Let god take their spirits home...
- ;-----------------------------------------------------------------------------------
- ;///////////////////////////////////
- ; WinSock releated
- ;///////////////////////////////////
- .const
- MAX_BUFF_LENGTH equ 4000 ;Do not change
- WSABUF Struct
- len DWord ? ;len of buffer
- buffer DWord ? ;pointer to buffer
- WSABUF EndS
- InternalClients_Struct Struct
- TCPorUDP Dword ? ;Connection Model
- Port Dword ? ;Port for connection
- IPorName DB 20 Dup(?) ;IP or Host name
- hWnd DWord ? ;Handler of WndProc
- MSGID Dword ? ;ID for WSAAsynSelect
- Sock DWord ? ;Var for socket
- SockAddr sockaddr_in <>
- SendBuff DB MAX_BUFF_LENGTH Dup(?) ;Buffer for send bytes, dont change this constant
- RecvBuff DB MAX_BUFF_LENGTH Dup(?) ;Buffer for recv bytes, dont change this constant
- SendBuffSize DWord ? ;If we want to use less bytes for buffer without changing the constant
- RecvBuffSize DWord ? ;If we want to use less bytes for buffer without changing the constant
- pSendPacket Dword ? ;Variable for hold the pointer to the last packet that couldt been sended caused WSAEWOULDBLOCK
- LastLengthPacket Dword ? ;Variable for hold the last length of the packet that couldt been sended caused WSAWOULDBLOCk
- ProtocolAddr Dword ? ;Pointer to protocol for handle packets
- Connected DWord ? ;Its Connected sock or dont
- InternalClients_Struct EndS
- .data
- .data?
- .code