������� ������������ / ������ "������������ ��� Linux" / ���������� ���������
next up previous contents index
Next: ������� shutdown Up: ������ � �������� Previous: ������� send   Contents   Index

������� recv

������� ������ ��� ������ ������ �� ������.

��������:

int recv(int s, char * buf, int len, int flags);

������ �������� - �����-����������, �� �������� �������� ������. ������ � ������ ��������� - ��������������, ����� � ����� ������ ��� ������ �������� ������. ��������� �������� - ��� ���������� ������� ������, ����������� �������� ������. ���� �������� flags ����� ����, �� ��������� ������ ��������� �� ������. ���� �������� flags ���� MSG_PEEK, �� ������ �� ��������� � ����� ���� ������� ���������� ������� ( ��� �������� ) recv.

������� ���������� ����� ��������� ������ ��� -1 � ������ ������. ������� ��������, ��� ������� �������� �� �������� �������. ��� ������������� �� ���������� ���������� � ����� ���������-����������� ������.



Alex Otwagin 2002-12-16



������:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
�������:

�������� �� �����
���������� �� ���������
Created 1996-2026 by Maxim Chirkov
��������, ����������, ����������