-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
D2 Net and Safesock #96
Conversation
Including Winsock2.h manually means we can keep WIN32_LEAN_AND_MEAN
SERVER_Initialize @10003 NONAME | ||
SERVER_Release @10004 NONAME | ||
CLIENT_Send @10005 NONAME | ||
D2NET_10006 @10006 NONAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be SERVER_Send
or SERVER_SendToClient
. (if option n°2, then rename CLIENT_Send
to CLIENT_SendToServer
)
Here are names from @Necrolis we may want to get inspiration from
D2Net.#10000 - InitSystem
D2Net.#10001 - ShutdownSystem
D2Net.#10002 - Wait
D2Net.#10003 - CreateQServer
D2Net.#10004 - CloseQServer
D2Net.#10005 - SendToServer
D2Net.#10006 - SendToClient
D2Net.#10007 - RecvFromBufferClt
D2Net.#10008 - RecvFromHiPriorityBufferClt
D2Net.#10009 - <Missing?????> -> assuming this is RecvFromLoPriorityBufferClt
D2Net.#10010 - RecvFromBufferSrv
D2Net.#10011 - RecvFromHiPriorityBufferSrv
D2Net.#10012 - RecvFromLoPriorityBufferSrv
D2Net.#10013 - GetSocketName
D2Net.#10014 - GetIPAddress
D2Net.#10015 - CreateConnection
D2Net.#10016 - CloseConnection
D2Net.#10017 - Connect
D2Net.#10018 - SetQServerData(0xBD8)
D2Net.#10019 - SetConnectionCallback
D2Net.#10020 - SetConnectionData
D2Net.#10021 - GetConnectionData
D2Net.#10022 - Wait(0xBD4)
D2Net.#10023 - SetQServerMode
D2Net.#10024 - GetLastWSAError
D2Net.#10025 - CreatePollThread
D2Net.#10026 - SetMaxClients
D2Net.#10027 - GetMaxClients
D2Net.#10028 - Return
D2Net.#10029 - Return
D2Net.#10030 - GetClientPacketSize
D2Net.#10031 - GetServerPacketSize
D2Net.#10032 - CloseAllConnections
D2Net.#10033 - GetQServerIP
D2Net.#10034
D2Net.#10035
D2Net.#10036
D2Net.#10037
D2Net.#10038
D2Net.#10039 - GetSendFunction
D2Net.#10040 - GetDataFunction
Original game checks for == 0, and it is an unsigned value.
This branch adds all ordinals of
D2Net.dll
, as well as theFog.dll
Safesock declarations.Note that include Safesock.h will include
Winsock2.h
, which may be heavy.A lot of functions have yet to be named, but will help rewriting other .dll code if they are referenced.