6 specifying encapsulation – Sun Microsystems MEDIACENTER 2.1 User Manual

Page 118

Advertising
background image

7-8

Sun MediaCenter Server Administrator’s Guide • December 1997

The components of this address are as follows:

The <IP hostname> is the destination client’s IP hostname.

The <UDPport num> is the destination UDP port number on which the client host
is awaiting data.

For example, the address of

host=cordelia,udpport=40000

specifies that data

be delivered to host

cordelia

at UDP port 40000.

The server must have available a name service (or appropriate entries in local

/etc/

hosts

and

/etc/ethers

) so that the client hostname can be resolved to the four-

byte IP address and the six-byte Ethernet address before data transmission begins.

7.6

Specifying Encapsulation

For all types of output links, you specify the encapsulation of the data for a
particular bit stream with the MSMC API ‘s

msmSetConnect()

function. You fill in

an instance of the

MsmConnect

structure before calling

msmSetConnect()

. This

structure contains an

encap

field, which holds a string. This field determines the

encapsulation that the server uses to deliver data to the client.

TABLE 7-1

lists the

strings used to specify different encapsulations.

TABLE 7-1

Value of

encap

Field in

MsmConnect

Encapsulation Type

encap

Contents

MPEG-2 Transport Stream

MPEGTS

MPEG-2 Program Stream

MPEGPS

MPEG-1 System Stream

MPEG1SYS

Thomson Consumer Electronics

MPEGTCE

Advertising