1

I'm trying to create a server based around the restful api (basically a client - server system which listens on a specific port but all the tutorials I've seen were using asp.net, some databases or not suited / too complex. I've tried The Msdn Tutorial, That One CodeProject and That Other CodeProject Tutorial and also haven't found a simple solution here either.

I was thinking of a solution like:

Server listens on specific port for restful requests (Lets call it "ServerListener") and handles the request then in a static "CheckNumber" if its either positive or negative. It'll then reply to the client with the value "positve" or "negative" (depending on its value). The client then shows a MessageBox with the result.

The final idea would be having the server being proxied by an nginx server which handles the the encryption with the client and sanitizing the request.

2 Answers 2

1

Please check https://msdn.microsoft.com/en-us/library/windows/desktop/aa364510(v=vs.85).aspx

The Http API will give you the freedom to implement your server without Asp.Net, without WCF, and even without IIS.

Sign up to request clarification or add additional context in comments.

Comments

0

Check my post, it contains several examples for simple REST server implementations, including C#, Java, PHP and node.js.

2 Comments

Broken link. Post still available somewhere else?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.