How the adapter works
Because communication over sockets is through streams or bytes, the adapter needs some protocol to be able to distinguish where one message begins and another one ends.
To meet this need, the adapter provides the following options:
- Fixed size messages (-FIXED), where the length of each message is a known, fixed value.
- Sized messages (-SIZED or -ISIZED), where each message is preceded by a value representing the size of that message.
- File message (-EOF), where the shut down of the socket defines the message.
- Delimited messages (-EOM), where one or more specified characters indicate the end of the message.