Search results for query: *

  • Users: Pons
  • Order by date
  1. P

    An event for Data arrival with .NET Sockets

    Hi, You can't call the sub directly. You can call the delegate like this: frmMain.ASock.BeginReceive(clientData.SetRawData, 0, 8194, SocketFlags.None, AddressOf ReceiveData, Nothing) Thanks.
  2. P

    An event for Data arrival with .NET Sockets

    The ReceiveData function should be like this: Public Sub ReceiveData(ByVal ar As IAsyncResult) Dim intCount As Integer Try SyncLock mobjClient intCount = mobjClient.EndReceive(ar) End SyncLock If intCount < 1 Then ' RaiseEvent Disconnected(Me) ' (ur code) Exit Sub End If ' (ur code)...
  3. P

    An event for Data arrival with .NET Sockets

    declare mobjClient as socket and do the connections and then use the following function. "" mobjClient.BeginReceive(marData, 0, BUFFER_SIZE, SocketFlags.None, AddressOf ReceiveData, Nothing) "" Here Receivedata is the sub where u can write the neccessary code. mardata is a byte array...
  4. P

    Sending Encrypted message between client and server

    Hi, I am doing a chat application and i am sending the encrypted message from client to server using the encoding method - "Encoding.UTF8". In server, when it receives the message from the socket, it reads the message partially (it misses some of the charecters at the end of the string)...
Back
Top