1 / 3

Coding and Formatting Data for Network Use

Coding and Formatting Data for Network Use. Syntax – Format (2-bytes for port number) Semantics – Meaning of Allowed Content (binary 16-bit number, Port number 0 to 65,535). End-Line (s) ---------------------- Teletype, MSDOS, Internet: LF and CR ---------------------- UNIX:

odessa
Télécharger la présentation

Coding and Formatting Data for Network Use

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Coding and Formatting Datafor Network Use Syntax – Format (2-bytes for port number) Semantics – Meaning of Allowed Content (binary 16-bit number, Port number 0 to 65,535)

  2. End-Line(s) ---------------------- Teletype, MSDOS, Internet: LF and CR ---------------------- UNIX: LF (^J, 0x0A) ---------------------- Mac OS Before OSX CR (^M ,0x0D) After OSX Either CR or LF ---------------------- HTML ...<br> or <p>...</p> UTF-8 Since 2007 To type control characters. hold down Control Key and type the letter in 3rd column. ( LF is typed as Control+J written as ^J ) 2

  3. Formating (Delineating) Records 1. Fixed Field – Certain number of bits or bytes assigned. a. Fixed by convention b. Fixed by preceding length record 2. Starts at next byte, ends by control character (or control sequence) Can not include control character in data. Escape character needed for arbitrary bytes in data (variable length) Groups of records separated by another control character Padding – adding meaningless characters to match required length

More Related