×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    7

    Smile [moved] simple UPD Client Example

    Hi everyone,

    I am using E71, and i want an example about sending a simple text from a client to my server by using UDP protocol. So i need a simple client example, or any link that i can prefer. thk

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: simple UPD Client Example

    A good search key for that would be KProtocolInetUdp.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    7

    Re: [moved] simple UPD Client Example

    Hi wizard_hu,


    i still dont find any example that allow me to know how to send a simple text from a client application to my server using UDP. Or perhap do you got any sample code that i can prefer to?
    Really need you help..

    Thank.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: [moved] simple UPD Client Example

    Sure
    Code:
    RSocketServ sockserv;
    sockserv.Connect();
    RConnection connection;
    connection.Connect(sockserv);
    connection.Start();
    RSocket socket;
    socket.Open(sockserv,KAfInet,KSockDatagram,KProtocolInetUdp,connection);
    TInetAddr addr(1234);
    addr.Input(_L("127.0.0.1"));
    TRequestStatus stat;
    socket.SendTo(_L8("Hello"),addr,0,stat);
    User::WaitForRequest(stat);
    socket.Close();
    connection.Close();
    socketserv.Close();
    May I ask which is the line you have not found?

Similar Threads

  1. [moved] WebDav Client on S60?
    By olivier.parniere in forum General Development Questions
    Replies: 4
    Last Post: 2009-01-15, 02:54
  2. [moved] creating simple lists
    By vineet.jain in forum Symbian User Interface
    Replies: 5
    Last Post: 2008-07-16, 17:59
  3. [moved] Displaying a Simple Dialog
    By Burim in forum Symbian User Interface
    Replies: 6
    Last Post: 2008-06-26, 16:13
  4. client server programming in j2me
    By mottaisami in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-09-05, 14:43
  5. Simple Client Example in Romania
    By ianratcliffe in forum Symbian
    Replies: 0
    Last Post: 2006-08-07, 13:09

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×