Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Question on server code. clsbuffer!!


abhi2011
 Share

Recommended Posts

Hey guys. Can anyone explain to me what this piece of code does? And is there a limit to the size of string we can send to the server from client?

```
Public Sub WriteBytes(ByRef nByte() As Byte)
Dim nLength As Long

    nLength = (UBound(nByte) - LBound(nByte)) + 1

    If WriteHead + nLength - 1 > BufferSize Then Allocate nLength

    CopyMemory buffer(WriteHead), nByte(0), nLength
    WriteHead = WriteHead + nLength
End Sub
```
I want to knoe because I am writing something for a tutorial. And when the packet data of 2 strings reach the client it will highlight this piece of code!

```
nLength = (UBound(nByte) - LBound(nByte)) + 1
```It is in clsbuffer!
Thanks!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...