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 813323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:20:24+00:00 2026-05-15T01:20:24+00:00

Using Visual Studio 2005 Language: c# A new to c# I have software, the

  • 0

Using Visual Studio 2005
Language: c#

A new to c#

I have software, the software should communicate with gprs devices. So i want to write a protocol, TCP, UDP communication code.

Can any one give some idea for writing a source code and some sample code also.

  • 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-15T01:20:24+00:00Added an answer on May 15, 2026 at 1:20 am

    When you say the software should communicate with GPRS devices,
    I’m going to assume you mean they want to communicate with eachother using TCP/IP and the fact that the two endpoints are connected to eachother by GPRS modems should make little to no difference except for that fact that you have to keep in mind the limited bandwith and slower transfer speeds.

    (Some extra work does have to be done when you are using GPRS modems which are connected to your system using RS232 or USB interfaces, I’m assuming GPRS modems with a direct RJ45 connector here)

    Your first step is to make sure you understand the basics of TCP/IP and UDP/IP.
    You did not mention what kind of data you want to exchange between the applications,
    so that leaves us very little to go on. You need to decide what type of messages the
    applications will exchange and you need to determine whether you’ll use TCP/IP or UDP/IP
    to exchange those messages. Long story short, you should only use UDP if you can afford to lose a few bytes along the way. (For example, it doesn’t matter if you lose a few frames while streaming video).

    Once you’ve decided what kind of messages the applications should exchange,
    you need to determine how you will represent them. Olivier pointed out you should take
    a look at ProtoBuf.Net, which is a .NET implementation of the Google Protocol Buffers.

    You can find more information on the topic here: http://code.google.com/intl/nl-NL/apis/protocolbuffers/docs/overview.html

    Basically it allows you to define messages like this:

    message Person {
      required string name = 1;
      required int32 id = 2;
      optional string email = 3;
    
      enum PhoneType {
        MOBILE = 0;
        HOME = 1;
        WORK = 2;
      }
    
      message PhoneNumber {
        required string number = 1;
        optional PhoneType type = 2 [default = HOME];
      }
    
      repeated PhoneNumber phone = 4;
    }
    

    Which, by means of ProtoBuf.Net, you can then use in your code.
    The binary format of Google Protocol Buffers is compact enough to
    be transmitted over GPRS connections.

    I hope this gives you a few starting points,
    first deside what you want, then look into the points we’ve mentioned
    and feel free to post new (more specific) questions in the future

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

Sidebar

Ask A Question

Stats

  • Questions 398k
  • Answers 398k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The first one. Period. Actually you'll lose much more. A… May 15, 2026 at 3:31 am
  • Editorial Team
    Editorial Team added an answer If you're backend is a different theme than the front… May 15, 2026 at 3:31 am
  • Editorial Team
    Editorial Team added an answer You want to check if the current window is the… May 15, 2026 at 3:31 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.