|
-
Oct 4th, 2002, 02:23 AM
#1
Thread Starter
Junior Member
A question about Socket.Receive()
Hi,does anybody can help me?
This is my program that used to receive some data:
---------------------------------------------------------------------------
client_socket = server_socket.Accept()
Dim receive_byte(1024 ) As Byte
Dim receive_str As String
client_socket.Receive(receive_byte)
receive_str = Encoding.ASCII.GetString(receive_byte)
client_socket.Close()
---------------------------------------------------------------------------
but, if the 1024 is not enough to used,
the error(SocketException) will occur.
but I don't want to just add the volume of receive_byte(),
example: 1024 becomes 10000
how to I solve this problem?
I want to receive the all data that came from client.
Thanks!
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
|