Search Results - VBForums

Search:

Type: Posts; User: rex64

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    328

    Re: Find String inside of a Byte array

    This is for parsing binary data received over the network. I guess the best option would be to re-structure our network code, and I think we may have done that in newer programs. It would still be...
  2. Replies
    3
    Views
    328

    Find String inside of a Byte array

    How do you search for a string inside of a byte array? I know it is there, but the sizeIndex always comes up as -1. I looked at the bytes and they are at the very beginning, but it can not find...
  3. DataGridView Delete Rows with UserDeletingRow

    I have a DataGridView and I want to Delete Rows with the UserDeletingRow event. I tried deleting the entire selection at once, and that works great, but the event is then called extra times for all...
  4. Thanks VB Forums! See the reasults of our game here!

    We created Yargis in XNA, and are proud to announce our game here! We could not have done it without your support. Thanks VB Forums for all your help on our back end classes! We would love to get...
  5. Replies
    11
    Views
    649

    Re: VB .NET Networking Class

    Yes, that helps. I was asking about the send because sometimes it seems like we may be overloading the buffer and then I am wondering if data gets corrupted (partial data sent)?
  6. Replies
    11
    Views
    649

    Re: VB .NET Networking Class

    Is there a way to check the socket send buffer and make sure it is not full before sending? What happens if the buffer is full?
  7. Replies
    11
    Views
    649

    Re: VB .NET Networking Class

    I think so. We are using the Sockets TCP IP class from the last post and improving it to resolve a few bugs. Can you ask the question in more detail? We plan on letting sockets do the tough work, but...
  8. Replies
    11
    Views
    649

    Re: VB .NET Networking Class

    I am planning on improving my Sockets networking class. TCP. I am creating a back-end generic class that can be re-used in other games and applications.
  9. Replies
    11
    Views
    649

    Re: VB .NET Networking Class

    I read this MSDN document but it still does not seem to match the behavior we are experiencing.
    http://msdn.microsoft.com/en-us/library/w93yy28a.aspx

    The answers to some of my questions from post...
  10. Replies
    11
    Views
    649

    Re: VB .NET Networking Class

    I am planning on just using a byte array to re-assemble the data as it arrives. As long as no data is lost or messed up, it should work I believe?
  11. Replies
    11
    Views
    649

    VB .NET Networking Class

    I am having issues with my data being chopped (I am missing the tail). Also, I am receiving extra data. I have a few questions (actually a lot).

    Do you recommend any great pre-made networking...
  12. Replies
    1
    Views
    289

    .NET for Windows 8

    I would like to maximize StudyX's .NET compatibility, and make sure that nothing special has to be installed on Windows 8. I t looks like 3.5 is not available natively on Windows 8, but I am not sure...
  13. Thread: Shaders

    by rex64
    Replies
    0
    Views
    576

    Shaders

    Our shader technique is causing other text to get massed up. We would like to cancel the shader after we apply. We tried saving the EffectTechnique. We can do a spritebatch begin and end but we...
  14. Replies
    9
    Views
    2,173

    Re: Send Data on NetworkStream Getting Stuck

    I am thinking that we may have overloaded the function with calls somehow. Anyways, the WriteTimeout seems very useful as well. I will let you know if we are still stuck. It may take another day or...
  15. Replies
    9
    Views
    2,173

    Re: Send Data on NetworkStream Getting Stuck

    The issue seems random. Sometimes it locks on the first one (which is actually just a 3 string with the length of the data (usually around 450)).
  16. Replies
    9
    Views
    2,173

    Re: Send Data on NetworkStream Getting Stuck

    Hmm, I know this normally works, because we use the function/class for some other things in the game. Although, it is newly written so it still has some issues. I am getting the error this time on...
  17. Thread: help

    by rex64
    Replies
    3
    Views
    258

    help

    If anyone knows networking I could use some help on my other thread (it has been a few days):...
  18. Replies
    9
    Views
    2,173

    Re: Send Data on NetworkStream Getting Stuck

    I tried a few changes like SyncLock and CanWrite but it is still having the same issue:

    ''' <summary>
    ''' Sends binary data.
    ''' </summary>
    Public Sub sendData(ByVal data() As...
  19. Replies
    9
    Views
    2,173

    Send Data on NetworkStream Getting Stuck

    The IDE seems to get stuck on this one line of code in our SendData. I wanted to see what you recommend to fix or debug this. We have tried a few debug.print type things. We are just getting some...
  20. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Ok, I think I am understanding everything. The loop is getting stuck in startHosting. Disposing is = to true in the debugger, but it does not seem to get off that line of code. It has a green arrow...
  21. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Also, it looks like this stream loop is not active all the time. Should this loop be running the entire time that it is connected? Or should this close at some point? Is this a good way to do it?

    ...
  22. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Things are working better, but for some reason I think the stream may be getting damaged. I can send data to the server and it receives it but I am not getting any data back on the stream after I run...
  23. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Thanks. I do understand the client server, but I am trying to learn the best way to implement it in VB .NET. So if I understand this correctly:
    clsNetServer would have a single TcpListener. When a...
  24. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    I think TcpListener is for watching an ip address and port. So I am thinking I should only need 1 of these. Are the clients just network streams? To disconnect a client do you just dispose of the...
  25. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Should each client connection on the server have its own TcpListner?
    Dim server As TcpListener = Nothing

    So if 100 clients were connected I would have:
    QTY1: clsNetServer
    QTY100:...
  26. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Should I have one total or 1 per client of these:

    Dim server As TcpListener = Nothing


    And what about this?

    Dim connection As TcpClient = Nothing
  27. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Here is my plan. Let me know your thoughts.

    93425
  28. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Ok, so this is what I am planning:
    clsNetClient (connects to the server)
    clsNetServer (has list of clsNetServerConnection)
    clsNetServerConnection (each connection will be its own class)
  29. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    It looks like you are creating a different instance of the class for each thread to keep track of them. Is that what you recommend I do? It sounds like it would use more resources, but it should work...
  30. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    See attached

    93319
  31. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    This is a networking class we have written to work with a 3D game we are creating.
  32. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    I just need to know which client or thread index the data is coming from. What do you recommend? I think I have multiple stream watchers. Maybe each one should pass in an index or a reference to the...
  33. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    How can I keep track of which client index this belongs with? I have a ClientInfo list that I add clients to when they connect.


    Public Structure ClientInfo
    Dim ip As...
  34. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Ok. Can I raise the event like this:

    RaiseEvent DataArrival(Me, message)
  35. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    I looked at that, but we are doing multi-threaded and I am not sure how to check which client is communicating with the server. Sorry, I am a little new to multi-threaded networking.
  36. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Here is the stream watcher:

    ''' <summary>
    ''' Watches a stream while a user is connected? Stays alive while user is connected?
    ''' </summary>
    Private Sub streamWatcher(ByVal...
  37. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    It gets passed into the function from this event. Should this have more or different parameters?

    Public Event DataArrival(ByVal message As String)
  38. Replies
    37
    Views
    1,745

    Re: Receive Paremeters on Multithreaded Server

    Ok, I had a feeling that was the case, so I re-wrote things to work around that.

    My issue I have now is, how do I know what thread index/ip address data is arriving on?

    This is my data...
  39. Replies
    37
    Views
    1,745

    Receive Paremeters on Multithreaded Server

    I have created a multi-threaded server but can not figure out how to send an object/string. I think I have the ability to receive it already.

    Server created:

    serverThread = New...
  40. Thread: not a member

    by rex64
    Replies
    4
    Views
    288

    Re: not a member

    When I move it out (just below the imports) I get Blue Wavy lines, and this error:
    Error 45 Statement is not valid in a namespace. C:\Users\Jeff\Documents\Visual Studio...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.