通过网络连接MySQL服务器

2016-01-15
阅读 2 分钟
5.3k
目标:使宿主机(OS X)下的Workbench访问VirtualBox VM(Ubuntu 14.04)中部署的MySQL 5.6服务器。

JavaScript面向对象编程简明教程

2015-07-25
阅读 5 分钟
3.6k
首先需要明确,JavaScript并不是传统意义上的OO语言,它并没有class的概念, 而是包含了另一套异常强大的原型机制。它的类型体系、继承体系都建立在原型基础之上。 为了迎合传统的OO开发者,JavaScript语言的设计者通过这套原型体系模拟了传统面向对象语言的编码风格。

Netty in Action笔记(Chapter 8)Provided ChannelHandlers and codecs

2015-03-12
阅读 3 分钟
2.7k
【8.3 Handling idle connections and timeouts】 You may find times when you want to handle idle connections and timeouts. Typically youd send a message, also called a "heartbeat," to the remote peer if it idles too long in order to detect if its still alive. Another approach is to disconnect the r...

Netty in Action(Chapter 13)Broadcasting events via UDP

2015-03-11
阅读 3 分钟
2.9k
Thanks to its unified Transport API, Netty makes writing UDP based applications easy as taking a breath. This allows you to reuse existing ChannelHandlers and other utilities that you have written for other Netty based Applications.

Netty in Action笔记(Chapter 9)Bootstraping Netty applications

2015-03-11
阅读 1 分钟
2.4k
EventLoop and EventLoopGroup Remember the EventLoop that is assigned to the Channel is responsible to handle all the operations for the Channel. Which means whenever you execute a method that returns a ChannelFuture it will be executed in the EventLoop that is assigned to the Channel. The EventLo...

Netty in Action笔记(Chapter 7) Codec

2015-03-10
阅读 4 分钟
3.4k
【7.1 codec】 Whenever you write a network-based program, youll need to implement some kind of codec. The codec defines how the raw bytes need to be parsed and converted to some kind of logic unit that represents a custom message. The same is true for converting the message back to raw bytes that...

Netty in Action笔记(Chapter 6)ChannelHandler

2015-03-08
阅读 9 分钟
5k
What makes ChannelHandler even more powerful is that you can chain them so each ChannelHandler implementation can fulfill small tasks. This helps you write clean and reusable implementations.

Netty in Action笔记(Chapter 5)Buffers

2015-03-07
阅读 6 分钟
3.7k
Netty uses reference-counting to know when it s safe to release a Buf and its claimed resources. While it s useful to know that Netty uses reference counting, it s all done automatically. This allows Netty to use pooling and other tricks to speed things up and keep the memory utilization at a san...

Netty in Action笔记(Chapter 4)Transport

2015-03-07
阅读 4 分钟
2.5k
One of the most important tasks of a network application is transferring data. This can be done differently depending on the kind of transport used, but what gets transferred is always the same: bytes over the wire. Transports help abstract how the data is transferred. All you need to know is tha...

Netty in Action笔记(Chapter 3)Netty from the ground up

2015-03-07
阅读 5 分钟
2.4k
Bootstrap or ServerBootstrap: Bootstrap用于配置客户端和基于UDP协议的客户端和服务器;而ServerBootstrap只用于配置服务器. The second difference is perhaps the most important. Client bootstraps/applications use a single EventLoopGroup whilst ServerBootstrap uses 2 (which in fact can be the same insta...

Netty in Action笔记(Chpater1 ~ 2) First Netty application

2015-03-07
阅读 3 分钟
3.6k
【Chapter 1 Netty and Java NIO APIs】 The entire Netty API is asynchronous.