server application | developer.brewmp.com server application | developer.brewmp.com

Developer

server application

Forums:

Hi,

I am new to ISocket programming in Brew.

Hello i want to create a own server application using ISocket API

Is it possible ?

And with this i have created the client application using IWeb API.

if i give request will it work in this way client/server application?

if yes for server application here is my piece of code which is not working
want to know what is the error may be

void BindSocket(server *pMe)
{
int Ret;

if(ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_NET,(void**) &pMe->m_pINetmgr) != SUCCESS)
{
DBGPRINTF("Instance not created");
return;
}

Ret = ISOCKET_Bind(pMe->m_pISocket,SERVER_ADDR,SERVER_PORT);

if(Ret != SUCCESS)
{
return;
}

ListenSocket(pMe);

}

void ListenSocket(server *pMe)
{
ISocket *pSock;
int nErr;

nErr = ISOCKET_Listen(pMe->m_pISocket,1);

if(nErr != AEE_NET_SUCCESS)
{
DBGPRINTF("listening to socket failed");
DBGPRINTF("nErr nErr %d",nErr);
}

ISOCKET_Accept(pMe->m_pISocket,&pSock);

}

please any one knows about server application can guide what is the process....

Thanks in advance.......

:)