B
Ben
I have this data I want to send over the network to the server. It is
working fine except I don't know how to break up the buffer on the receiving
side. On the client I am sending "hostname<BREAK>data<EOF>" The server
receives this packet but how would I break it up?
I usually use structs in C for this but how do structures work in VB2005? I
can define
structure mydata
hostname as string
data as string
end structure
but how does the server know where the hostname stops and the data begins?
In C I would do something like
struct mydata {
char hostname[32]
char data[1024]
}
I guess what I am asking how do I specify the length of a string?
Thanks,
Ben
working fine except I don't know how to break up the buffer on the receiving
side. On the client I am sending "hostname<BREAK>data<EOF>" The server
receives this packet but how would I break it up?
I usually use structs in C for this but how do structures work in VB2005? I
can define
structure mydata
hostname as string
data as string
end structure
but how does the server know where the hostname stops and the data begins?
In C I would do something like
struct mydata {
char hostname[32]
char data[1024]
}
I guess what I am asking how do I specify the length of a string?
Thanks,
Ben