Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6027223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:33:38+00:00 2026-05-23T04:33:38+00:00

I plan to use sockets to make function calls between a client 32 bit

  • 0

I plan to use sockets to make function calls between a client 32 bit application and a 64 bit application.

What would be the best scheme to call functions, pass variables and return parameters via the socket interface. I have control over both the client and the server code so I can implement anything.

I was thinking, to have the socket packet being made up of:
– 1 word: length (# of characters) of the function name
– string: the actual function name
– 1 word: length (in bytes) of the function parameters
– function parameters

Please let me know, what would be the most robust and extensible approaches. Maybe I can reuse principles used by calling conventions by compilers, web services or virtual machines.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:33:39+00:00Added an answer on May 23, 2026 at 4:33 am

    I suggest that you use Protocol Buffers for the serialization:

    http://code.google.com/apis/protocolbuffers/docs/reference/cpp/index.html

    Tutorial:

    http://code.google.com/apis/protocolbuffers/docs/cpptutorial.html

    When you send the object to the other side, start with a length prefix (32bit int) which defines how many bytes you should read to get a complete protobuf message.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using mod_perl for my web application. Currently, I plan to use a
I plan to use some music on my site, but before I make it
I plan to use XMLHttpRequest post text/string to server from client side. I need
I plan to use those functions in web-environment, so my concern is if those
I plan to use XML/XSLT in my iPhone application. What version of XSLT is
I will plan to use Redis (ServiceStack) as whole database for web application. I
I plan to use PyInstaller to create a stand-alone python executable. PythonInstaller comes with
I plan to use a distributed cache in my load-balanced webapp. So I'm going
If I plan to use data caching do I have to worry about conflicts
If you do not plan to use lazy loading, should deferred loading be explicity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.