×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    39

    How to connect to a TCP socket

    How do I connect to a TCP socket?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    76

    RE: How to connect to a TCP socket

    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
  •  
×