|
-
Jun 23rd, 2000, 10:28 AM
#1
Thread Starter
Junior Member
The client to server winsock program I am working is constantly sending a waleth of data back and forth. However, I just became aware I can not .senddata with arrays. What would you suggest for send several bits of information at once?
-
Jun 23rd, 2000, 12:04 PM
#2
Hyperactive Member
-
Jun 23rd, 2000, 12:42 PM
#3
Thread Starter
Junior Member
What is in your arrays?
Just strings.
Example:
Public Outgoing(1 to 20) as String
Outgoing(1) = Action
Outgoing(2) = UserID
etc...
Client.Senddata
-
Jun 23rd, 2000, 01:15 PM
#4
Hyperactive Member
yeah you are going to have to send each individually unless you can just concat all the strings and send out one big chunk.
-
Jun 23rd, 2000, 01:36 PM
#5
Lively Member
you can combine the strings with something that is unique for the strings
for ex.
Outgoing(1)="Hi"
Outgoing(2)="I"
Outgoing(3)="am"
Outgoing(4)="John"
Outgoing(5)="!!!"
for i=1 to Ubound(Outgoing) Step 1
strOut=strOut+Outgoing(i)
next i
you can combine the elements with a "|" sign(Chr(127))
than you can separated them with | as the delimiter
YC Sim
Teenage Programmer
UIN 37903254
-
Jun 23rd, 2000, 02:55 PM
#6
Thread Starter
Junior Member
Originally...
Yeah. Originally I was using the | as a seperator by which to take apart the information, but I am afraid that may end up causing to much thinking with the amount of data that will be sent back and forth from the amount of users at one time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|