Hi all.
I'm working on a client server application, eventually to be a POS (point of sale) system.
The model is something like, client (till) does not have access to the database, instead it sends data to the server application, which in turn deals with the database and any other operations which might need to be carried out.
I have my rudimentary client server set up, so far as the server accepts connections from multiple clients.
So my next step is dealing with client sending data to the server, and in what fashion etcetera.
Say I have a class like so...
class Transaction
{
public int Type { get; set; }
public decimal Price { get; set; }
public decimal Paid { get; set; }
public decimal Change { get; set; }
}
I was thinking to send each variable in a different byte array and wait for acknowledgement before sending the next, but that seems a little to much, so then was thinking to put them all in a single byte array and send it once like that (not sure how I would do that incidentally, but that's something else)
Then, and now I'm getting to my question, I began to wonder if it is possible to send the object instance as a whole and cast it somehow at the server side, back to a Transaction class.
I'm probably making no sense, but I'm just after some suggestions, even regarding keywords and or terminology I should be using in my web searches to research the subject.
Thank you kindly for reading, as always. I appreciate your time.