服务器错误 [英] error on server
本文介绍了服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我正在开发一个套接字程序.但是,在编译并运行服务器后,我会编译并运行客户端.但是connect()函数存在问题,即使套接字正常,客户端也无法连接或服务器不接受连接...
我想发送服务器的矩阵程序
请帮助我
hello
I''m working on a socket program .However after i compiled and run the server, i compile and run the client. But there is a problem in connect() function and even socket is ok client does not connect or server does not accept connection...
i want to send a matrix program for server
please help me
推荐答案
medrina写道:
medrina wrote:
但是连接中有问题()函数
But there is a problem in connect() function
您认为,也许我们可以猜出问题出在哪里?
And you think, maybe, we can guess what that problem is?
没有足够的信息来回答您的问题.让我尝试帮助,如果您是网络编程的新手,最好从工作示例开始.
看看 Beej的网络编程指南 [ Winsock程序员的常见问题解答 [ ^ ],在第6节中有示例.
或者,使用许多现有包装器类之一.这里有按字母顺序排列的基于阻塞和事件的套接字类: Alhem , SharkEngine , QT ,
There is not enough information to answer your question. Let me try to help, it''s best to start with working examples if you are new to network programming.
Have a look at Beej''s guide to networking programming[^], there are client/server examples in chapter 6.
Another starting point is the Winsock Programmer''s FAQ[^], it has examples in section 6.
Alternatively use one of the many existing wrapper classes. There are blocking and event based socket classes out there, in alphabetical order: Alhem, Boost, SharkEngine, QT, and many others...
Hope it helps :)
这篇关于服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文