![Ross TES9 Скачать руководство пользователя страница 52](http://html1.mh-extra.com/html/ross/tes9/tes9_software-user-manual_1488783052.webp)
9–2 • Appendix A. Software Interface for LAN
TES9 Software User Manual (Iss. 04)
Overview
The LAN encoder makes use of the TCP/IP protocol to transfer data. Better error free data
transmission is ensured since the encoder uses TCP packets as opposed to UDP packets. This
eliminates the possibility of lost data during transmission.
The basic steps to establish a connection and send data to the encoder using the winsock static
library are:
1.
Initialize winsock using the
WSAStartup
command.
2.
Get the name of the sending computer using
gethostname
command.
3.
Get the IP address of the sending computer using the
gethostbyname
command.
4.
Copy the IP address part of the HOSTENT structure to another structure of type
IN_ADDR.
5.
Create a socket for making a connection using
socket
command.
6.
In order to improve efficiency and make it possible to run multiple copies at once, it is
necessary to use the non-blocking commands available in the winsock static library. This
makes use of the Microsoft® Windows® message processing loop. Do this by issuing
the
WSAAsyncSelect
command.
7.
Bind the socket created in the step above to the TCP/IP protocol and accept
connections for any port number using the
bind
command.
8.
Fill structure SOCKADDR_IN with the destination information.
9.
Establish a connection using the
connect
command.
10.
When connection has been established the W 100 message is sent to the
Microsoft® Windows® message loop.
11.
After all data transmission is finished, the sockets must be shut down using the
following commands:
shutdown
,
closesocket
,
WSACleanup
commands.
Содержание TES9
Страница 1: ...TES9 Multi Function HD SD SDI VANC Processor Software User Manual ...
Страница 6: ......
Страница 14: ...1 6 Introduction TES9 Software User Manual Iss 04 ...
Страница 26: ...3 10 Encoder Configuration TES9 Software User Manual Iss 04 ...
Страница 67: ...Notes ...