Home > Net > TcpClient receiving and sending data is too small, how to expand the capacity
TcpClient receiving and sending data is too small, how to expand the capacity
Time:10-03
The client=New TcpClient () Client. The Connect (host, port) The stream=client. GetStream () . Dim bytes () As Byte=Encoding UTF8. GetBytes (command. GetCommand () & amp; VbCrLf)
Stream. Write (0 bytes, bytes. The Length) Stream. Flush () 'ReDim bytes (Integer) MaxValue) can't set the maximum byte, TcpClient transmission limits the 'the ReDim bytes (client. ReceiveBufferSize) ReDim bytes (62420) Stream. Read (0 bytes, bytes. The Length) Dim result=Encoding UTF8. Get string (bytes)
Do a DLL redis interface
CodePudding user response:
Can change the agreement to play, see your ID and the junction post rate, I don't want to say more