Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Socket forced to withdraw from the server, client how to judge?

Model is NONBLOCK
Clients continue to read, if dealing with the length greater than 0.
Write to the client under appropriate conditions server端
Study is under development to the client data can be received, if the server used ctrl+c interruption or other means, such as the power-down or restart the server, client how can judge from here?

Co-wrote a few seconds to confirm this? Over time that has continued to this?

Qualify, there should be a better way!

Please gets advice, I would like to thank

Socket forced to withdraw from the server, client how to judge?

Calls for the server, the client read the results of less than or equal to 0
Like

Socket forced to withdraw from the server, client how to judge?

I use the nonblocking mode, if no data, the value will be returned to the "= 0, if the pattern of obstruction, then return to the" = 0 is the value of that socket ineffective


Do not intercept SIGPIPE? Not right

Socket forced to withdraw from the server, client how to judge?

Socket forced to withdraw from the server, client how to judge?

I win Client connecting successful, the network banned, and this is certainly not the transmission of data, and then read the return value is -1, fd still seem to think that this system is good, but it is no data, how does this testing?

Socket forced to withdraw from the server, client how to judge?

If the process of shutting down the service connected, the client operating socket return ECONNRESET

If the service from the process, or are not up the queue but listen and initialization, the client operating socket return ECONNREFUSED

Socket forced to withdraw from the server, client how to judge?

Keyboard brother finally showed up!

Laughter
My question is this :
I Client (win+delphi) was connected to the server in process (Linux), quite normal when I win on the card to ban machine, the server should be done as soon as possible to find sockfd problems? I use the select function is not to find out this fd, fd system still seems to think this is good, but it is no data transmission, I was not the only way to detect the use of overtime?
I SO_KEEPALIVE was eventually used, but I know little of this (actually could not speak), so please audacity keyboard brother can say a few more words?

Thank you, thank you, Please Please!

Socket forced to withdraw from the server, client how to judge?

Please refer to Unix Network Programming 1

Socket forced to withdraw from the server, client how to judge?

Thank you, find a pdf version of books online, download, at no cost White read a bit embarrassed. . .

Socket forced to withdraw from the server, client how to judge?

-->

Answer to my question. See the topic said. Not just a water tank. I would not have said it. Flw brother has been for me to say. Interested and I can discuss in private. Strictly speaking is not so simple.

Socket forced to withdraw from the server, client how to judge?

Real-time high requirements, and only deal with the application. Transmitting information such as heartbeat
There are two ways :
1. Opening another socket
2. Band data

Socket forced to withdraw from the server, client how to judge?

Every time I see or client server to send a ferry information, if a client has not received the time, it shows the mainframe Break!


This is not very simple



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com