winsock sending data problem
hello everybody,
i have a problem using winsock in VB.
i have develop a client server application using winsock but i'm facing a problem that is my server application only received data from client application after i have finish the process.
what i tryin to said here is, i have some function like :
private function_send1()
Call send_now()
end function
private function_send2()
Call Send_now()
end function
which will call the send_now() function.
in my send_now() function(), i have:
Private Function Send_now()
with FrmClient.sckClient(FrmClient.MaxCN)
if .State=SckConnected then
.SendData "~@" & name & "~~" & age & "~~" & ....& "~~" & FrmClient.Concurrent & "~~"
else
MsgBox "Error in Connection"
Exit Function
end if
end with
end Function
why my server application can not get the data sequantially.
it get the data at one time. it did not receive the data twice that is from function_send1() then function_send2().
it receive the data right after the function_send2(). why?
isn't it should receive according to order like 1 first the follow by 2.
but my winsock application receive it at one time.
how do i solve this problem?
thanks,
gechin