Browse Source

Tidy up the AddrInfo stuff (not enough though).

Darryl Pogue 14 years ago
parent
commit
e8a0b3f78f
  1. 4
      Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.cpp
  2. 4
      Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.h
  3. 2
      Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xSocket.cpp

4
Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.cpp

@ -29,6 +29,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsTypes.h"
#include "pnAddrInfo.h"
#include <string.h>
#if HS_BUILD_FOR_UNIX
# include <unistd.h>
# include <arpa/inet.h>
@ -138,7 +139,8 @@ void pnAddrInfo::GetLocalAddrs(List& addrslist, bool incLoopBack)
SOCKET s = socket(AF_INET, SOCK_DGRAM, 0);
if (WSAIoctl(s,SIO_GET_INTERFACE_LIST,NULL,NULL,(void*)infos,bufSize,&retSize,NULL,NULL) == 0)
if (WSAIoctl(s, SIO_GET_INTERFACE_LIST, NULL, 0,
(void*)infos, bufSize, &retSize, NULL, NULL) == 0)
{
unsigned int entries = retSize/sizeof(INTERFACE_INFO);
int i;

4
Sources/Plasma/NucleusLib/pnAddrInfo/pnAddrInfo.h

@ -37,11 +37,15 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
# include <sys/socket.h>
# include <netdb.h>
#elif HS_BUILD_FOR_WIN32
# if (_WIN32_WINNT < 0x0501)
# define _WIN32_WINNT 0x0501
# endif
# include <winsock2.h>
# include <ws2tcpip.h>
#else
# error "pnAddrInfo Not Implemented!"
#endif
#include "hsTypes.h"
#include "hsStlUtils.h"

2
Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/W9x/pnAceW9xSocket.cpp

@ -605,7 +605,7 @@ void CSocket::ProcessQueue () {
// Dispatch it
switch (command->code) {
case command->WRITE: {
case Command::WRITE: {
AsyncNotifySocketWrite notify;
notify.param = command->param;
notify.asyncId = 0;

Loading…
Cancel
Save