Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(ARM).Porting TCP-IP programmer's guide.Ver 1.4.pdf
Скачиваний:
31
Добавлен:
23.08.2013
Размер:
2.79 Mб
Скачать

Low-overhead UDP Functions

8.1.5udp_socket()

This function is used to obtain a random port number that is suitable for use as the lport parameter in a call to udp_open(). The udp_socket() function avoids picking port numbers in the reserved range 0-1024, or in the range 1025-1199, which may be used for server applications.

Syntax

int udp_socket(void)

Return value

Returns a UDP port number. This number is the lport parameter that is suitable for passing to udp_open().

8-6

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

ARM DUI 0079B