Results 1 to 2 of 2

Thread: Package data to be sent From Server to Client

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Location
    USA
    Posts
    150

    Package data to be sent From Server to Client

    I have a server application that talks to four coms ports (or more).
    The application uses a class (one for each Comms port with methods etc) that deals with receiving data from and sending to those coms ports.


    Now when the class has the data it needs to send it to the Client (Clients) to display the data.

    I need to send who the data is from, a message header and the body of the message.

    Who its from. I have in the past just allocated an "id" but I would like to actually send the handle (is that the correct term) of the class.

    Code:
    <serializable ()>
     public Class OpMsg
         public Whois As Object 
         public MessagerHeader as String
         public MessageBody as String  'or byte array etc
    End Class
    The code above is an idea.

    Message header. The is generally just text string.

    Message body. It can be a string or array of bytes (Its length can vary).

    Now do I create a serializable class and put these data types in or can someone suggest another way.

    Im not looking code, just a concept.
    Last edited by 2ndmessiah; Jan 30th, 2010 at 05:41 PM.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Location
    USA
    Posts
    150

    Re: Package data to be sent From Server to Client

    Nobody. OK not a prob.

    Regards

    Adrian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width