System::Net::Sockets::NetworkStream::NetworkStream constructor

NetworkStream::NetworkStream(System::SharedPtr<System::Net::Sockets::Socket>) constructor

Constructs a new instance.

System::Net::Sockets::NetworkStream::NetworkStream(System::SharedPtr<System::Net::Sockets::Socket> socket)
ParameterTypeDescription
socketSystem::SharedPtr<System::Net::Sockets::Socket>The socket that is used for sending and receiving data.

See Also

NetworkStream::NetworkStream(System::SharedPtr<System::Net::Sockets::Socket>, bool) constructor

Constructs a new instance.

System::Net::Sockets::NetworkStream::NetworkStream(System::SharedPtr<System::Net::Sockets::Socket> socket, bool ownsSocket)
ParameterTypeDescription
socketSystem::SharedPtr<System::Net::Sockets::Socket>The socket that is used for sending and receiving data.
ownsSocketboolA value that indicates if the current instance takes ownership of the specified socket when the value is true.

See Also

NetworkStream::NetworkStream(System::SharedPtr<System::Net::Sockets::Socket>, System::IO::FileAccess, bool) constructor

Constructs a new instance.

System::Net::Sockets::NetworkStream::NetworkStream(System::SharedPtr<System::Net::Sockets::Socket> socket, System::IO::FileAccess access, bool ownsSocket)
ParameterTypeDescription
socketSystem::SharedPtr<System::Net::Sockets::Socket>The socket that is used for sending and receiving data.
accessSystem::IO::FileAccessSpecifies the access type given to the instance over the specified socket.
ownsSocketboolA value that indicates if the current instance takes ownership of the specified socket when the value is true.

See Also