Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I study BREW only four days.

I'm trying INETMGR_OpenSocket, but it always return NULL in boolean Test_InitAppData(Test* pMe) as this:
if (ISHELL_CreateInstance(pMe->a.m_pIShell, AEECLSID_NET, (void**)&pMe->m_pINetMgr) != SUCCESS)
return FALSE;

pMe->m_pISocket = INETMGR_OpenSocket(pMe->m_pINetMgr, AEE_SOCK_DGRAM);
if (pMe->m_pISocket == NULL)
return FALSE;

Why?

Thanks!

Check the privileges in MIF editor

Check the privileges in MIF editor

but didn't resovle question.

but didn't resovle question.

After the failure, call INETMGR_GetLastError() and find the error code in AEEError.h.
Should shed some light on the situation.

After the failure, call INETMGR_GetLastError() and find the error code in AEEError.h.
Should shed some light on the situation.

AEE_NET_EFAULT
What's meaning?

AEE_NET_EFAULT
What's meaning?

In aeenet.h
AEE_NET_EFAULT~
Invalid address parameter has been specified.
It seems you specified a invalid address.

In aeenet.h
AEE_NET_EFAULT~
Invalid address parameter has been specified.
It seems you specified a invalid address.

Where can I specify the address?

Where can I specify the address?