Post ur code then[/quote]这是客户端代码
这是服务器代码
请帮忙看一下我哪不对了,小女子不胜感激。。多谢多谢
[/quote]
I don't see any loop around recv, is this the latest code you have for the client?
Could you please copy paste your codes to the web page instead of screenshot? If I ever want to try your codes, I would have to literally type every character if it's a screenshot.
Be prepared and considerate when you post a question!
in your serve side C codes,
the first argument for function send should be the socket file descriptor of client. In other words, it's the return value from accept, connectfd instead of listenfd.
You may also want to know that your client recv buffer is smaller than the incoming data from the server. So, without a loop around recv, you probably can't print all 29 characters on your console...