Python Network Programming (based on the twisted client programming)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] python of the twisted meaning can do server programming, can also do client programming. On this aspect of programming, the most simple example is echo. Client code, /usr/bin/python #! Twisted.internet.protocol import from...
Read(472) comment(0)

Python Network Programming (timer)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] network programming, state machine and a timer for Python is little not the. However, the preparation of the timer function on the twisted is not a complicated thing, you only need LoopingCall function, you can easily do this. The following example code, # /usr/bin/python! Twisted.internet impo from...
Read(519) comment(1)

Python Network Programming (about twisted)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] I'm not good at writing socket code. First, the use of C to write up more trouble, the two is his usual demand in this area. Wait until you really want to know when, only to find themselves in this area does have the need to improve the place. Recently, due to the reasons for the project need to write some Python code, only to find in the python below the development of socket is a how cool things. For most of the socket...
Read(502) comment(0)

Suixianglu (about SMP load balancing)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] for the SOC, SMP is one of the basic functions. This year, if who said their home SOC not SMP, seems like nabuchushou. Fortunately, arm for everyone to prepare a lot of programs, from the early dual core, to now the quad core, eight core, and so on, a small chip performance is more and more high. Of course, since it is a multi core, then how do the load balancing, so that each core is not idle, this is the software engineering...
Read(1069) comment(0)

Suixianglu (not interrupt context switching really do)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] Remember when reading, operating system of the teacher tells us that in the CPU processing interrupt is not context switching. As to what is the reason, it is said that the impact of the impact of the interruption, what the impact of performance. Then down a little deeper, there is No. Of course, to the teacher's words, we are of course convinced. Later when their port ucos2 real-time system found in the original interrupt return time...
Read(1060) comment(1)

Suixianglu (campus recruitment record)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] work since, I in too many times social recruitment, whether it is to help the company, or to help a friend, the number is not small. But this time, as the interviewer to participate in campus recruitment, or the first time. For most companies, campus recruitment will be arranged in September and October, a small number of companies if there is no trick will be in the next year's three or four months to recruit once. Time is a little bit earlier, the students can be at ease to prepare before graduation thesis, the company can also be...
Read(1561) comment(5)

Suixianglu (cloud Network Library)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] on network programming, I have not learn how. But not API is not familiar with, is not suitable for the socket library, libevent what are not familiar with. So, take this opportunity to learn, he wrote a network library code, basically do the asynchronous trigger mechanism, each user only do their own event callback. The current code has been put on the GitHub, that is, https:/...
Read(958) comment(0)

Suixianglu (high quality code)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact box: @163.com feixiaoxing] how to develop the quality of the individual can also be the code to write the code itself is not a very complex thing. According to certain logic, with IDE tools, roll up sleeves can immediately dry up. But there is no denying that there is a difference in the quality of the code. Some students while writing code to write for a long time, but often eyebrows beard grabbed to no structure structure, logical not logical, not to mention the expansion, performance test and analysis of the. The...
Read(1258) comment(2)

Suixianglu (some problems in network programming)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] ago, also wrote some code of network programming, but the writing is not very good. If you want to, or not enough to understand the tcp/ip protocol. Together with the recent LwIP to see the realization of learning about GitHub on the open source code, and then practice a lot, there are a lot of harvest. ) a TCP is a connection oriented, UDP is not connected. For a wide area network this complex network, compared with TCP insurance;) to b...
Read(991) comment(1)

Console Linux under the snake game

Copyright, welcome to reprint, please do not use for commercial purposes. Contact email: @163.com feixiaoxing] in Linux under the preparation of a small game is a very fun thing, such as the preparation of tanks, snake, the pile of boxes and so on, these issues are not. Linux provided by the libncurse library can be very easy to do this, the following code is extracted from the online section of code, you can directly compile and run, enter the snake.c -o snake -lcurses gcc. Original code...
Read(1322) comment(1)

Suixianglu (simple windows driver code)

Copyright, welcome to reprint, please do not use for commercial purposes. To contact the mailbox: feixiaoxing @163.com] didn't write a Windows driver, but see a simple windows driver code, it was found that the entry is very easy. We can try to see, the right to be a pastime, #include HelloUnload NTSTATUS (PDRIVER_OBJECT DriverObject IN) { DbgPrin...
Read(1225) comment(0)

Suixianglu (simple link file)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] in embedded development, in addition to the assembly file, C file and Makfile, link files is unavoidable. Assembly file is generally CPU power on to start the implementation of file, sometimes interrupt, part of the MMU and cache, spin also needs to be done in assembly; C files constitute the embedded development is the main content, both the kernel and driver, net or upper app are generally c...
Read(971) comment(0)

Suixianglu (no load balancing SMP OS design)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] before wrote no SMP OS. On this OS also see was less. If there is, it is also a part of the SMP Linux, but Linux above will involve the load balance, also very complex, understand that there is a certain difficulty. However, when I really write, I find it difficult to overcome it. Give up load balance not to talk, write SMP OS also can do. Here's where I am...
Read(1052) comment(0)

Suixianglu (about UCORE)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] before used SkyEye for a period of time, also to develop SkyEye Chenyu have some understanding. Recently wandering around on the GitHub, stumbled upon a good UCORE project. A look at the author, is also Chen Yu. He is now a lecturer of Tsinghua University curriculum operating system. In order to allow people to have a better understanding of OS, so the development of such an open source project. 1) https:/ project...
Read(2610) comment(0)

Aoti leecode

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] recently and found to write your own code ability to drop a lot. So, on the Internet to find a look, there is no similar can improve the project. Occasionally see others in the leetcode brush topic, feel particularly interesting, so used to practice your hand. Because leetcode has a lot of test cases on each topic, so you upload the code must be all through these test cases. Not said, in order not to lose...
Read(2151) comment(0)

Suixianglu (webbench pressure test code)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] on pressure test, there are a lot of code online. However, I personally feel that the webbench code is better written, probably also because I have a preference for small and refined code it. Stress testing generally refers to the server to bear a certain load, and then can verify the CPU server usage, IO speed, MEM and swap size, response speed and so on. Original web...
Read(8329) comment(0)

Suixianglu (a native Android code of APP)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] this afternoon, accidentally see Android a native app code, also on a file. Developing app Android is not difficult. We can look at the specific contents are as follows. * * Copyright (C) 2007 Android The Open Source Project * * under Licensed...
Read(3067) comment(0)

Suixianglu (Python development website)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] in Linux, using the python development website is a very simple thing. At present, the framework for supporting the development of Python website is webpy, Django, tornado. All students can choose according to their own preferences. Personally, I prefer a framework like webpy. At present, learning content about webpy in webpy....
Read(2045) comment(0)

Suixianglu (watercress web crawling)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] love movies students to bean is not very strange. In general, we will have to see the film before, will be to see how to look at the evaluation of the. If the evaluation is too low, in fact, it is not meaningful, on the contrary, if the value is too much, that in any case can not be missed. The integral part of the majority is accurate, but also can not rule out the case of malicious brush points. For a long time, I want to put all the good watercress...
Read(2629) comment(2)

Suixianglu (a kind of writing a new read write lock)

Copyright, welcome to reprint, please do not use for commercial purposes. Contact e-mail: feixiaoxing @163.com] do game the students must be familiar to the cloud wind. This period of time he developed the Skynet and ejoy2d two software framework on the GitHub is very fire. The game server development is Skynet can as a service framework. Ejoy2d is a client code, not content, the main package OpenGL interface, a lot of people not necessarily. I...
Read(2701) comment(0)
333 data a total of 17 PagesOne Two Three Four Five ... Next page Shadowe
    personal data
    • Visit2700138 times
    • Integral:Twenty-nine thousand five hundred and twenty-two
    • Grade
    • Rank:Ninety-ninth name
    • Original332
    • Reproduced:1
    • Translation:0
    • Comments:2374 article
    Latest comments