Description: 本程序使用MSP430F149驱动PS2接口的PC键盘,使用了SN74LVC4245用作电平转换;PS2 端口使用了标准的六芯插座,可以接收来自标准键盘、鼠标的数据。由于键盘、鼠标都是 5V 供电系统,而 MSP430F149 只能工作在 3.3V,所以需要在两者之间进行电平转换。根据键盘的工作原理,MCU只要接收键盘发送过来的时钟信号和数据信号,然后对数据信号进行解码就可以了。为此我们利用了电平转换电路的两根数据线,让键盘的时钟线 CLK 连接SN74LVC4245 的A8 端口,键盘的数据线DATA连接SN74LVC4245 的A7 端口-This procedure using the MSP430F149 the PC interface driver PS2 keyboard, used for SN74LVC4245 level conversion PS2 port using a standard six-core socket, you can receive from the standard keyboard and mouse data. As the keyboard, mouse are 5V power supply system, while the MSP430F149 can only work in 3.3V, so it is necessary to carry out between the two-level conversion. According to the working principle of the keyboard, MCU as long as the receiver from the keyboard to send the clock signal and data signals, data signals and then decode it. To this end, we made use of level-shifting circuit of two data lines, so that the keyboard clock line CLK of the A8 connection SN74LVC4245 port, keyboard data line DATA port to connect SN74LVC4245 the A7 Platform: |
Size: 36864 |
Author:skywalker |
Hits:
Description: TCPServer(IOCPServer) Socket 大容量网络服务器解决方案
大容量网络服务器解决方案,可达到每服务器支持超多8万人在线(保持8万个以上的TCP长连接)-TCPServer (IOCPServer) Socket large capacity network server solutions for large-capacity network server solution that can reach every server to support more than 8 million people in super-line (to keep more than 80,000 long TCP connection) Platform: |
Size: 276480 |
Author:z7788321 |
Hits:
Description: 套接字连接超时设计方案:在使用tcp进行网络通信时,由于受到网路传输速度的限制,所以经常会导致套接字连接占用很长时间。本程序实现用户要求3秒中没有建立连接,就认为连接失败,要求重新连接来避免这种情况。-Socket connection timeout design: tcp in the use of network communications, the transmission speed of the network due to the restrictions, so often lead to socket connection occupied for a long time. This procedure user requirements to achieve three seconds does not establish a connection, that the connection fails, request to re-connect to avoid this situation. Platform: |
Size: 216064 |
Author:fanren |
Hits:
Description: 面向连接的Socket实例:
代码实例中的服务器通过socket连接向客户端发送字符串"Hello, you are connected!"。只要在服务
器上运行该服务器软件,在客户端运行客户软件,客户端就会收到该字符串。-Connection-oriented Socket example: code of server instances to connect through the socket to the client to send the string " Hello, you are connected!" . As long as the server running the server software, running on the client client, the client will receive the string. Platform: |
Size: 28672 |
Author:暗流 |
Hits:
Description: 长连接或短连接Socket客户端。支持收到的数据校验,检查服务器是否关闭连接。简单易用-Long or short connections Socket client to connect. Support received data check to check whether the server close the connection. Easy-to-use Platform: |
Size: 3072 |
Author:liulianghao |
Hits:
Description: 服务器通过socket连接向客户端发送字符串"Hello, you are connected!"。只要在服务器上运行该服务器软件,在客户端运行客户软件,客户端就会收到该字符串。 -Server through the socket connection to the client sends the string " Hello, you are connected!" . As long as the server running the server software, client software running on the client, the client will receive the string. Platform: |
Size: 4096 |
Author:王红艳 |
Hits:
Description: 分别编一个客机程序和服务器程序,首先建立客户程序与服务器之间正确的socket连结,然后利用send和recv函数,客户程序将一个较长的文本文件(如几k字节)中的数据发送给服务器。要求服务器全部正确地接收到所有的数据(一个也不能少),并将其存入一个文件。-An aircraft program were compiled and the server program, first established between the client and the server socket connection right, and then use send and recv function, clients will be a long text file (such as a few k bytes) of data sent to server. Asked the server to receive all the right to all data (not a few), and to place a file. Platform: |
Size: 2048 |
Author: |
Hits:
Description: 连接时出现:"windows socket error:(10061),on API connect ”
是你的SOCKET没有启动(SCKTSRVR.EXE)或者无法连接到服务器。 使用socketconnect很简单,只要在应用服务器后台运行SCKTSRVR.EXE,不需要什么配
置。(在Delphi的Bin目录是已运行了scktsrvr.exe,但没有设置Port号;设置你要的Port号注意不要有冲突。
不知怎么用。最多的就是这种答案了。
还有说重启动进F8选最a后依次正确设置,我试了没用awindows socket error:由于目标机器积极拒绝,无法连接-Connection when: " windows socket error: (10061), on API ' connect' " is your SOCKET did not start (SCKTSRVR.EXE) or can not connect to the server. Socketconnect very simple to use, as long as the application server running in the background SCKTSRVR.EXE, do not need any configuration. (In Delphi' s Bin directory is already running scktsrvr.exe, but did not set the Port number set the Port number you want to be careful not to conflict. I do not know how to use. The most is this the answer. There are said to restart into F8 turn right after the election the most a set, I tried the useless awindows socket error: because the target machine actively refused, can not connect Platform: |
Size: 179200 |
Author:zuozheng |
Hits:
Description: socket长连接实例,分为服务端客户端,用心跳包维持连接-the socket long connection instance, is divided into server client maintain a connection heartbeat packet Platform: |
Size: 433152 |
Author:chujie |
Hits:
Description: HTML5+websocket实现PHP简单聊天室,含使用文档+源代码,开发语言:HTML5,Javascript,php,开发工具:Phpstorm 4.0,网上基本找不到一个成功用php写server的案例,比较少商业用途会使用这个脚本语言来实现server。html5 websocket的根本通讯还是基于http get,所以在性能上,理论值会比tcp socket低一点点。
PHP的垃圾回收机制,做socket长连接,是有问题的。
关于多线程,Php本来是单线程的,如果要做到多线程,可以做,但是一些文章说做出来的那个效果,是假的多线程,并不是实际意义上的多线程处理事务(文章说的,尚未证实)。php server长时间运行,是会挂起来的,要定期重启server。可能是由于长连接的原因。
因采用HTML5技术,所以你的浏览器需要支持HTML5,推荐使用火狐或Chrome,Safari等-HTML5+ websocket achieve a simple PHP chat rooms, including the use of documentation+ source code, development languages : HTML5, Javascript, php, development tools: Phpstorm 4.0, basically find a successful online server with php written cases, relatively few commercial uses will using this scripting language to implement server. html5 websocket communication is based on the fundamental http get, so the performance will be lower than the theoretical value tcp socket a little bit.
PHP s garbage collection mechanism, so long connection socket, there is a problem.
Multithreading, Php originally single-threaded, multi-threading if you want to do, you can do it, do it, but some articles say that the effect is a fake multi-threaded, multi-threaded processing services is not practical sense (article says I have not yet confirmed). php server long run, it will hang up, periodically restart the server. May be due to the long connection.
Due to the use of HTML5 technology, so Platform: |
Size: 472064 |
Author:spudn90 |
Hits:
Description: linux下的C语言编程,包括socket的长连接和短连接,有server端和client端的处理,以及简单的实例。-C language programming under Linux, including long connection and short connection socket, a server side and client side processing, as well as a simple example.
Platform: |
Size: 10240 |
Author:张 |
Hits:
Description: 长连接心跳包 可以为你的项目 需要实时获取到新数据这个完美的解决了你的问题(A long connection heartbeat package can get new data in real time for your project. This solves your problem perfectly) Platform: |
Size: 2910208 |
Author:cloudcly
|
Hits:
Description: IShareMessage是一个基于NIO的客户、服务器端编程框架,使用IShareMessage可以确保你快速和简单的开发出一个网络应用(包括推送服务,业务插件服务)。IShareMessage相当简化和流程化了TCP的socket网络应用的编程开发过程。通过利用云端与客户端之间建立稳定、可靠的长连接来为开发者提供客户端应用与平台交互通道,开发者只需关注业务开发,无须关注底层网络交互。(IShareMessage is a client and server-side programming framework based on NIO. Using IShareMessage ensures that you develop a network application (including push service, business plug-in service) quickly and simply. IShareMessage is quite simplified and streamlined the programming and developing process of the socket network application of TCP. By building a stable and reliable long connection between cloud and client to provide developers with interactive channels between client applications and platforms, developers only need to focus on business development without paying attention to the underlying network interaction.) Platform: |
Size: 6144 |
Author:allenlei2008 |
Hits:
Description: SuperSocket是一个轻量级的可扩展的Socket开发框架,可用来构建一个服务器端Socket程序,而无需了解如何使用Socket,如何维护Socket连接,Socket是如何工作的。该项目使用纯C#开发,易于扩展和集成到已有的项目。只要你的已有系统是使用.NET开发的,你都能够使用SuperSocket来轻易的开发出你需要的Socket应用程序来集成到你的现有系统之中。(SuperSocket is a lightweight, extensible Socket development framework that can be used to build a server - side Socket program without knowing how to use Socket, how to maintain a Socket connection, and how Socket works. The project is developed by pure C#, and it is easy to expand and integrate into existing projects. As long as your existing system is developed using.NET, you can use SuperSocket to easily develop the Socket applications you need to integrate into your existing systems.) Platform: |
Size: 10600448 |
Author:t4twer |
Hits: