This struct is defined in a .h file.
int* pSocket ;
UdpCallbackFnStruct fnStruct ;
unsigned short localPort ;
int contextValue ;
unsigned char remoteIp  ;
unsigned short remotePort ;
} SocketStruct ;
I used in my project as,
SocketStruct g_sockArray  ;
This is a function in my project. How to achieve this copy Operation.
The following code doesn't work
unsigned char DRVUdpSocketSetRemoteHost (SOCKENGINEHANDLE engine, SOCKHANDLE socket, unsigned char* remoteIp, unsigned short remotePort)
unsigned char err;
(g_sockArray [index].remoteIp).Copy((const TDesC16&) remoteIp) ;
g_sockArray [index].remotePort = remotePort ;
I am unable to copy the remote ip address to the remoteip member of the structure. Please help me.
Thanx in advance.