Kam
Kam

Reputation: 6008

socket programming beginner

Lets say I have a tablet PC running a GUI application, and a remote PC (with static IP) running the backend core stuff.

The application running on the PC should request information from the Server.

Now I was thinking of socket programming, where the server will be running a server socket application and the tablet PC a client socket application.

But is there a simpler thing? I know ftp protocol is used to transfer files, is there a high level protocol like ftp that can be used to transfer small binary data, 16 bits per request? so I don't have to do any socket programming?

If the answer is only using socket programming, how to do that?

Upvotes: 1

Views: 337

Answers (2)

user1202136
user1202136

Reputation: 11547

If I understand correctly, what you really want is an Application Server. If you choose to use sockets, you will have to deal with a lot of low-level details, such as marshalling / unmarshalling. You can opt for a higher-level solution:

  • CORBA;
  • PHP-based web server, perhaps using REST for transferring requests / replies;
  • add your favourite RPC / RMI framework here.

Upvotes: 1

Jeremy Friesner
Jeremy Friesner

Reputation: 73041

Socket programming is indeed what you want here. Check out Beej's Guide to Network Programming to get yourself started.

Upvotes: 1

Related Questions