UDP messages are sent, but there is no check or guarantee whether they arrive or not. Also if you send multiple UDP packets there's no guarantee that they will arrive in the same order as they were sent.
Its important to understand how sending information over a connection works before deciding on a protocol. When you send data over a connection it is broken down into small, standard size chunks called packets. The difference in the two protocols you've described is how they handle packets.
UDP simply takes a file, breaks it up, and sends each packet out onto the network. This sounds good in theory, but problems in the network can easily cause some packets to be lost or arrive in a different order than they were sent (think of it like the mail).
TCP also breaks up a file, but it adds a little bit of information that tells the receiving client where it goes when the file gets put back together. This fixes the out of order problem. TCP also requires a client to tell the sender when it receives a packet, which means any lost packets will be resent (and so on until it reaches the client).
I would strongly recommend TCP for the application you are describing. My team used TCP for a similar system we made as a school project.
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...