Closed Thread
Results 1 to 2 of 2

Thread: Client Server

  1. #1
    houlahan is offline Newbie
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Client Server

    Ok so i have created a socket server and client from some tutorials i have been looking at but one thing i carnt find out how to do is how to call a method from the server from the client, so say for example i have a button on the client which when the button is pressed it goes to the server and calls a method getName() and then the server returns the string name to the client

    thanks in advance, houlahan

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143

    Re: Client Server

    It's not quite that simple. When you click a button, the button client sends a message to the server. The server will have a listen method that has to interpret the message to call getName().
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sockets Server/Client ?
    By amw_drizz in forum C# Programming
    Replies: 1
    Last Post: 07-23-2011, 07:43 AM
  2. UDP client-server problem
    By calin.burloiu in forum C and C++
    Replies: 3
    Last Post: 06-21-2010, 05:24 AM
  3. Client/Server
    By dani in forum C and C++
    Replies: 3
    Last Post: 11-11-2008, 07:43 AM
  4. Client / Server
    By eric in forum General Programming
    Replies: 2
    Last Post: 09-03-2007, 07:29 AM
  5. Client / Server
    By eric in forum Marketing
    Replies: 0
    Last Post: 09-03-2007, 01:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

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