public SocketAddress getRemoteAddress(NativeLong dwConnID)
{
final int ADDR_LEN = 40 * Constant.CHAR_SIZE;
byte[] lpszAddress = new byte[ADDR_LEN];
IntByReference piAddressLen = new IntByReference(ADDR_LEN);
ShortByReference pusPort = new ShortByReference();
boolean isOK = HPSocket.SDK.HP_Agent_GetRemoteAddress(socketObj, dwConnID, lpszAddress, piAddressLen, pusPort);
return SocketAddress.craete(isOK, lpszAddress, piAddressLen, pusPort, false);
}