Morse code

Morse code is an old system of encoding messages that is used to send telegraphic information using signals and rhythm. In written communication, Morse code uses "dots" and "dashes" to represent a limited number of alphabet letters, numbers, punctuation and special characters of a given message. When messages are sent by sound, radio signals or light flashes, dots are short beeps or clicks or flashes, and dashes are longer ones. For example, Wikipedia written in Morse code is .-- .. -.- .. .--. . -.. .. .-..
Morse code is named after Samuel Morse, who helped invent it. It is not used as much today as it was in the 19th and 20th centuries. Teletypewriters were invented in the early 20th century with their own codes and gradually replaced Morse code. Other types of technology that are easier to use for communication became even more common. 
Some amateur radio operators still use Morse code to communicate and were previously required to learn and pass telegraphy exams to qualify their licenses. The requirements were lifted after 2003. 
There are different types of Morse code for some different countries. 
There are three different symbols in Morse code; there's a short one, usually called 'dit', a long one, called 'dah', and the pause. A dah is three times as long as a dit, and the pause has the same length as the dit.
Today, Morse codes can be easily generated through smartphone applications or through a web application, which take text as input and outputs the Morse code in copyable text or downloadable audio form. Its usage as a method of sending secret messages has become obsolete in favor of more powerful encryption techniques provided by advanced modern computer machines.
Different ways to send Morse code.
Morse code can be sent in different ways. On ships, flickering lights were often used instead of radio communication.
The history of the S.O.S.
The S.O.S as it is used today, was introduced by the Imperial German Marine in 1904. It was mandatory for all German ships starting in 1905. It was meant as a distress signal, and should be repeated until all other stations stopped sending. Afterwards the real message would be sent. Also, there is no pause between the characters. 
At the time, the market was controlled by two companies; one was Telefunken, and the other was Marconi. Marconi was under British control, Telefunken was German. Marconi used CQD as a distress signal. 
The people doing the communication were employees of either Marconi or Telefunken; they were not employed by the ships' owners. These operators were not allowed to answer calls sent by the competing company, which also included distress signals. As this was against the laws of the sea, a conference in Berlin decided to use the German distress signal internationally. This started in 1908. When the ship Republic sent a distress signal in 1909, it was still CQD, and the Titanic also sent CQD at first, in 1912. 
The first ship to use the new signal was the RMS Slavonia, in 1909.
Replacing the S.O.S signal.
The Global Maritime Distress and Safety System (GMDSS) is a satellite-based system that was introduced in 1999 to handle distress situations. It defines four different regions, three of which are covered by satellite. The fourth, which covers the polar regions, is covered by shortwave radio. With the introduction of GMDSS, the S.O.S signal is no longer used.