Stream. Write Byte(Byte) Method
Writes a byte to the current position in the NetworkStream and advances the position within the stream by one byte.
public: override void WriteByte(System::Byte value);
public override void WriteByte (byte value);
override this.WriteByte : byte -> unit
Public Overrides Sub WriteByte (value As Byte)
The byte to write to the stream.
An error occurred when accessing the socket.
There was a failure while writing to the network.
If you receive an IOException, check the InnerException property to determine if it was caused by a SocketException. If so, use the ErrorCode property to obtain the specific error code and refer to the Windows Sockets version 2 API error code documentation for a detailed description of the error.