public SocketOutputStream(SocketInstance sock, uint BufferLen = DEFAULT_SOCKET_OUTPUT_BUFFER_SIZE, uint MaxBufferLen = DISCONNECT_SOCKET_OUTPUT_BUFFER_SIZE) { m_pSocket = sock; m_BufferLen = BufferLen; m_MaxBufferLen = MaxBufferLen; m_Head = 0; m_Tail = 0; m_Buffer = new Byte[m_BufferLen]; m_BufferTemp = new Byte[m_BufferLen]; }
public SocketInputStream(SocketInstance socket, uint BufferLen = DEFAULT_SOCKET_INPUT_BUFFER_SIZE, uint MaxBufferLen = MAX_SOCKET_INPUT_BUFFER_SIZE) { m_pSocket = socket; m_BufferLen = BufferLen; m_MaxBufferLen = MaxBufferLen; m_Head = 0; m_Tail = 0; m_Buffer = new Byte[BufferLen]; m_BufferTemp = new Byte[BufferLen]; }