Home Forums Support socket Timeout..?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2963
    Anonymous
    Inactive

    Common Questions
    1.
    use the IOCP technology internally this product?
    (Withstands a lot of client connections and transmission?) about 8000 Ea Tcp/ip Connection ?

    2.
    If it does not send any information and is connected to a particular client,
    I should find that this.
    So I want to cut the socket does not send any information within one second after the connection.
    time limit is 0.5 sec.
    What should I do?

    3.
    then…
    And TCP socket connection I regularly send and receive data.
    If exceed the time limit of the data sent and received, I cut the socket connection.
    How do I set a time limit?
    How do I find a particular socket to disconnect me?

    4.
    I found a lot of them from the socket connection
    i must send the data. in one client socket.
    How Can I distinguish between them, and find them?
    Can I use a GUID which identifies ?
    how to Pick out the one client socket ?

    im use UnmanagedPacket protocol. / tcp connection .
    Thanks.

    #2966
    Anonymous
    Inactive

    Heya,

    Apologies I can not always understand your question. I will do my best to answer correctly.

    1. Can you please elaborate what you mean by ‘ICOP technology’? NetworkComms.Net uses Sockets internally.

    2. You can close a connection if no data is sent/received within 0.5 seconds using:

    foreach (Connection conn in NetworkComms.GetExistingConnection(ApplicationLayerProtocolStatus.Disabled))
    {
        if (conn.ConnectionInfo.LastTrafficTime < DateTime.Now.AddMinutes(0.5))
        {
            conn.CloseConnection(false);
        }
    } 

    3. To configure a send timeout you need to configure:

    Connection.MinNumSendsBeforeConnectionSpecificSendTimeout = 0;
    Connection.DefaultMSPerKBSendTimeout = [YourSelectedTimeout];

    4. The connection GUID is only available for managed connections. For unmanaged connection you have to use the ((IPEndPoint)Connection.ConnectionInfo.RemoteEndPoint) value to distinguish different connections.

    Hope that helps,
    Regards,
    Marc

    #2970
    Anonymous
    Inactive
    #2972
    Anonymous
    Inactive

    The architecture behind NetworkComms.Net does not use IOCP. Instead we provide our own fully asynchronous implementation that is more flexible.

    Marc

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.