W00t! Wrote my first RPC app!

NogginBoink

Diamond Member
Feb 17, 2002
5,322
0
0
Fellow programmers will appreciate this.

I've never really understood how RPC (remote procedure calls) work under Windows, so today I set out to write a simple RPC client/server app.

I wrote a server that sets up an RPC listening session, gets 2 numbers from the client, multiplies them, and sends the product back to the client.

It works! :D

Y'all will be thrilled to know that the computer across the network from me says the product of 12 and 13 is 156.
 

Lonyo

Lifer
Aug 10, 2002
21,938
6
81
Aww! You're special ;)

Anyway, nice, doubt a lot of people could do that, even if they thought themselves 1337. And hey, if you keep learning, maybe the skills can come in useful for getting a job.

Go you
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
RPC is so.... passe ;) It's all about SOAP/XML-RPC and service-oriented architectures with messages; not RPC calls.

I'm just kidding. I haven't delved into doing RPC calls by hand in quite some time, but it is exciting to see things like that work the way they should.

[edit]Oh, and man, anyone who cares about RPC will want to see the code! Post it :D[/edit]
 

PowerMacG5

Diamond Member
Apr 14, 2002
7,701
0
0
Originally posted by: Descartes
RPC is so.... passe ;) It's all about SOAP/XML-RPC and service-oriented architectures with messages; not RPC calls. I'm just kidding. I haven't delved into doing RPC calls by hand in quite some time, but it is exciting to see things like that work the way they should. [edit]Oh, and man, anyone who cares about RPC will want to see the code! Post it :D[/edit]

Yeah, could you post your code? This sounds very interesting to me.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Congratulations -- makes you want to go crazy with the sockets and the HTTP and the flaven now doesn't it :)

That was one fun part of the dot-com bubble, getting consulting work to write ("plain HTTP" pre-SOAP) web services and some SMTP/POP code using winsock. It was also good prep for when we needed to use SOAP at work.
 

ProviaFan

Lifer
Mar 17, 2001
14,993
1
0
Sounds interesting, though I don't know the slightest thing about what RPC is or what it does. :eek:

cout << "This is the extent of my programming knowledge.\n";