MonobjcMonobjc Documented Class Library
InitWithProtocolFamilySocketTypeProtocolSocket Method (family, type, protocol, sock)
NamespacesMonobjc.FoundationNSSocketPortInitWithProtocolFamilySocketTypeProtocolSocket(Int32, Int32, Int32, Int32)

Initializes the receiver with a previously created local socket.

Original signature is '- (id)initWithProtocolFamily:(int)family socketType:(int)type protocol:(int)protocol socket:(NSSocketNativeHandle)sock'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithProtocolFamilySocketTypeProtocolSocket(
	int family,
	int type,
	int protocol,
	int sock
)
Public Overridable Function InitWithProtocolFamilySocketTypeProtocolSocket ( _
	family As Integer, _
	type As Integer, _
	protocol As Integer, _
	sock As Integer _
) As Id
public:
virtual Id^ InitWithProtocolFamilySocketTypeProtocolSocket(
	int family, 
	int type, 
	int protocol, 
	int sock
)
Parameters
family (Int32)
The protocol family for the provided socket.
type (Int32)
The type of the provided socket.
protocol (Int32)
The specific protocol the provided socket uses.
sock (Int32)
The previously created socket.
Return Value
A local socket port initialized with the provided socket.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)