 |
 |
 |
|
|  |  |
 |
socket ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The socket function creates a socket that is bound to a specific service provider. |
 |  | | Code examples: |  | |
|
 |  | | Declaration: |  |  |
SOCKET socket(
int af,
int type,
int protocol
);
|
 |  |  | | FoxPro declaration: |  |  |
DECLARE INTEGER socket IN ws2_32;
INTEGER af,;
INTEGER type,;
INTEGER protocol
|
 |  |  | | Parameters: |  | af
[in] Address family specification.
type
[in] Type specification for the new socket.
protocol
[in] Protocol to be used with the socket that is specific to the indicated address family. |
 |  | | Return value: |  | | If no error occurs, socket returns a descriptor referencing the new socket. Otherwise, a value of INVALID_SOCKET is returned. |
 |  | | My comment: |  | | When a session has been completed, a closesocket must be performed. |
 |  | | Word Index links for the socket : |  | |
|
 |  | | Translate this page: |  | |  |  | | • |  | | Created: | 2001-12-20 07:44:43 | | Modified: | 2001-12-20 07:46:57 | Visited in last 7 days: 68 |
|
 |
 |
 |
 |
Copyright © 2001-2013
News2News, Inc.
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Privacy policy
|
 |
 |
 |
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc. |
 |
 |
|
 |
 |
|
|