Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Octet String: What is it?

Tags:

networking

I am starting to look into some network programming concepts for a project I am about to take over, and I keep running into this concept of an octet string. Can anyone out there provide some feedback into what this is, and how it relates to network programming?

like image 900
Craig H Avatar asked Aug 06 '09 20:08

Craig H


People also ask

What is the octet string?

OCTET STRING specifies octets of binary or textual information. While SMIv1 doesn't limit the number of octets, SMIv2 specifies a limit of 65535 octets. A size may be specified which can be fixed, varying, or of multiple ranges. Examples.

What is octet string in C?

A string used to be a set of octets, which is turn is a set of 8 bits. A string in C, is always a null-terminated, memory contiguous, set of bytes. Back in the day, each byte, an octet, represented a character. That's why they named the type used to make strings, char.

What is octet string in Java?

Octet string basically means byte array.

What is an octet data type?

The octet is a unit of digital information in computing and telecommunications that consists of eight bits. The term is often used when the term byte might be ambiguous, as the byte has historically been used for storage units of a variety of sizes.


1 Answers

Octet = byte.

Octet string = sequence of bytes.

Also, see Wikipedia.

like image 167
Søren Løvborg Avatar answered Sep 17 '22 18:09

Søren Løvborg