I have wrote this function to connect pc from emulator.It works fine and send message to pc.But when I reached under the last line(go deep in assembler) this error happens: "User breakpoints called. 6001BAF2 int 3"
what wrong?
void CMixdemoContainer::VeriGonder()
{
TInetAddr addr;
_LIT(KDefaultServerName, "127.0.0.1"😉;
TBuf<20> iServerName(KDefaultServerName);
TRequestStatus iStatus;
TInetAddr iAddress;
TInt iPort=1234;
if (addr.Input(iServerName) == KErrNone)
{
iAddress.SetAddress(addr.Address());
User::LeaveIfError(iSocketServ.Connect());
// Open a TCP socket
iSocket.Close(); // Just in case
User::LeaveIfError(iSocket.Open(iSocketServ, KAfInet, KSockStream, KProtocolInetTcp));
TUint32 KInetAddr = INET_ADDR(127,0,0,1);
// Set up address information
iAddress.SetPort(iPort);
iAddress.SetAddress(KInetAddr);
// Initiate socket connection
iSocket.Connect(iAddress, iStatus);
iSocket.Write(_L8("COMMAND FROM PHONE 111"😉,iStatus);
iSocket.Close();
}
}