User Profile

Collapse

Profile Sidebar

Collapse
littleIO
littleIO
Last Activity: Apr 3 '08, 11:25 PM
Joined: Apr 1 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • littleIO
    started a topic Client/Server Question!
    in .NET

    Client/Server Question!

    Hi,

    Im making an online client/server card game. The idea is to have a server running on one machine, controlling players, moves, card deals, scores etc... with the clients asking for the server to send them information on their every move.

    Even though most of the application is ready, my only problem at the moment is how to implement the constant notifications on one of the clients to the other clients at each time...
    See more | Go to post

  • littleIO
    replied to Asynchronous NetworkStream Problem...
    in .NET
    Yes it does...

    It displays on the console "Write Complete" and comes to the second networkStream.B eginRead(). then just sits there....
    See more | Go to post

    Leave a comment:


  • littleIO
    replied to Asynchronous NetworkStream Problem...
    in .NET
    Well the client is able to send a message to the server and any process activated is properly completed on the Server side but when the time comes to send it back to the client, the client application just hungs.
    No errors messages come up. Nor does the server part seem to show any problems at that time.
    And well If i use socket.close(); i am able to complete the whole process but only once, as on the second send to the server the...
    See more | Go to post

    Leave a comment:


  • littleIO
    replied to Asynchronous NetworkStream Problem...
    in .NET
    same thing...


    BTW: Client code

    Code:
    private NetworkStream streamToServer; 
    
    public Client()
            {
                //outputC = "Connecting to {0}" + serverName;
                TcpClient tcpSocket = new TcpClient("localhost", 8227);
                streamToServer = tcpSocket.GetStream();
            }
    public string reqDeal(string a)
    ...
    See more | Go to post

    Leave a comment:


  • littleIO
    started a topic Asynchronous NetworkStream Problem...
    in .NET

    Asynchronous NetworkStream Problem...

    Hi,

    I'm stuck on a very simple problem and just cant seem to get around it, little help would be much appreciated.
    I have a server which listens, receives calls, processes them and sends back the results to clients.
    The code below makes the client application not to respond. Client can send data but is stuck in the process of waiting information back from the server.

    Any ideas?


    ...
    See more | Go to post
No activity results to display
Show More
Working...