NetworkStream()

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)

Arguments

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

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)

Arguments

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.

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)

Arguments

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