Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User nkn_aikon's Avatar
    Join Date
    Mar 2003
    Posts
    39
    How do I connect to a TCP socket?

  2. #2
    Regular Contributor huckFIN's Avatar
    Join Date
    Mar 2003
    Posts
    76
    RSocket socket;
    RSocketServ socketServ;
    // Open channel to Socket Server
    User::LeaveIfError(socketServ.Connect());
    // Open a TCP socket
    User::LeaveIfError(socket.Open(socketServ, KAfInet, KSockStream, KProtocolInetTcp));

    // Do socket reading and writing here

    socket.Close();
    socketServ.Close();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved