winsock send data
winsock send data
winsock send data
winsock send data
winsock send data
winsock send data winsock send data winsock send data winsock send data winsock send data winsock send data winsock send data winsock send data
winsock send data winsock send data
winsock send data
Go Back  Xtreme Visual Basic Talk > > > winsock send data


Reply
 
Thread Tools Display Modes
  #1  
Old 09-05-2001, 08:06 AM
boy...
Guest
 
Posts: n/a
Default winsock send data


how do i send a certain size of packets by using winsock?

Winsock1.SendData 23byte <-------what is the right syntax£¿
winsock1.senddata c:\boy.txt

anyone can tell me please ? o


a novice <P ID="edit"><FONT class="small"><EM>Edited by boy... on 09/05/01 08:06 AM.</EM></FONT></P>
Reply With Quote
  #2  
Old 09-05-2001, 10:15 AM
ChiefRedBull's Avatar
ChiefRedBullwinsock send data ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default Re: winsock send data

you can send a string of a certain size by declaring it to be so big.
ie

sString = space$(50, " ")

makes a string fifty chars long, made up of spaces. Im not sure but i think thats either 50 or 100 bytes.... (could someone correct me here please.)

(Sending files via Winsock is not as easy as "C:\temp.txt" if thats what you were trying to do..... There are ways of doing it though)

Chief

"Dammit Smithers, this is brain surgery not rocket science!! Now hand me that ice cream scoop..."
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #3  
Old 09-06-2001, 01:34 AM
boy...
Guest
 
Posts: n/a
Default Re: winsock send data

i tried

sString = Space$(50, " ")

I got error shows :

Wrong number or arguements or invaid property assignment

a novice
Reply With Quote
  #4  
Old 09-06-2001, 01:42 AM
BillSoo's Avatar
BillSoowinsock send data BillSoo is offline
Code Meister

Retired Moderator
* Guru *
 
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
Default Re: winsock send data

sString = Space$(50)


"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Reply With Quote
  #5  
Old 09-06-2001, 06:43 AM
boy...
Guest
 
Posts: n/a
Default Re: winsock send data

it works now !! thanks

a novice
Reply With Quote
  #6  
Old 09-06-2001, 08:13 AM
burningodzilla
Guest
 
Posts: n/a
Default Re: winsock send data

trying to cause a little trouble w/ winsock? it can be fun...PM me if you need any help using it.

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
winsock send data
winsock send data
winsock send data winsock send data
winsock send data
winsock send data
winsock send data winsock send data winsock send data winsock send data winsock send data winsock send data winsock send data
winsock send data
winsock send data
 
winsock send data
winsock send data
 
-->