Skip to content
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

Merged
merged 17 commits into from
Jan 23, 2023
Merged

D2 Net and Safesock #96

merged 17 commits into from
Jan 23, 2023

Conversation

Lectem
Copy link
Member

@Lectem Lectem commented Jan 20, 2023

This branch adds all ordinals of D2Net.dll, as well as the Fog.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.

@Lectem Lectem requested review from Mw95 and IAmTrial January 20, 2023 10:30
@Lectem Lectem self-assigned this Jan 20, 2023
source/D2Net/CMakeLists.txt Show resolved Hide resolved
source/Fog/include/Fog.h Outdated Show resolved Hide resolved
SERVER_Initialize @10003 NONAME
SERVER_Release @10004 NONAME
CLIENT_Send @10005 NONAME
D2NET_10006 @10006 NONAME
Copy link
Member Author

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

source/D2Net/src/Client.cpp Show resolved Hide resolved
source/D2Net/src/Client.cpp Outdated Show resolved Hide resolved
source/D2Net/src/Server.cpp Outdated Show resolved Hide resolved
source/D2Net/src/Server.cpp Show resolved Hide resolved
source/D2Net/src/Server.cpp Outdated Show resolved Hide resolved
source/D2Net/src/Server.cpp Outdated Show resolved Hide resolved
source/D2Net/src/Server.cpp Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants