Click or drag to resize

CSocket.bind Method

X#
Associate a local address with a socket.

Namespace:  VO
Assembly:  VOInternetClasses (in VOInternetClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD bind(
	nPort AS WORD,
	cIP AS STRING,
	nFamily AS SHORT
) AS LOGIC
Request Example View Source

Parameters

nPort
Type: Word
Port number at cHostNameOrIP.
cIP
Type: String
String containing the local name of an Internet server. Alternately, the string can contain the IP number of the site in ASCII dotted-decimal format (for example, 11.22.3.45). If NULL_STRING is specified, the local host name is assumed.
nFamily
Type: Short
SHORTINT number specifying the Address Family.

Return Value

Type: Logic
See Also