NetTalk Central

Author Topic: contact netSimple server with c++ dll  (Read 2138 times)

carlossm

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
contact netSimple server with c++ dll
« on: August 11, 2019, 10:16:27 PM »
Hi, is it possible to connect to a netsimple server from a C++ dll? The idea is to have a netsimple server running and have the C++ dll request some info from the netsimple server and take action depending on the netsimple server's response.

Thanks

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: contact netSimple server with c++ dll
« Reply #1 on: August 11, 2019, 10:42:26 PM »
Hi Carlos,

Yes it is possible. NetSimple is using a "protocolless" connection - similar to something telnet or similar may use. Because the connection has no "high level" protocol you would need to develop your own protocol and then implement this on both the server side, and client side. If the information being transferred is not completely trivial then it might be better to use an existing protocol.

For example, the most common high-level protocol which programs use when communicating with each other is HTTP or HTTPS.
This can be trivially small, to really complicated, so it allows the connection to "grow" as needs grow.

Building a server like this with NetTalk is really easy, using the NetWebServiceMethod templates. You can create trivial methods, or complicated ones.

If you've not done it before this will probably take you 2 to 3 days to set up - there are some webinars worth watching and so on. If you've done it before it'll likely take no more than an hour or so to get a server up and running.

cheers
Bruce


carlossm

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Re: contact netSimple server with c++ dll
« Reply #2 on: August 12, 2019, 08:41:15 PM »
Thanks Bruce.