com.aispeech.dui

## 类 BusClient.XSocket

- java.lang.Object
- - com.aispeech.dui.BusClient.XSocket

- 封闭类:
    BusClient

      public static class BusClient.XSocket
      extends java.lang.Object

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static int` | `DEFAULT_BYTE_BUFFER_SIZE`

  - ### 构造器概要

    构造器
    构造器和说明
    `XSocket(java.lang.String name, int bufferSize)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `close()`
    `void` | `connect(java.lang.String addr)`
    `boolean` | `isConnected()`
    `boolean` | `isReadable()`
    `BusClient.Multipart` | `receiveMultipart()`
    `void` | `sendMultipart(BusClient.Multipart multipart)`
    `boolean` | `waitReadable(long timeout)`
    `boolean` | `waitWritable(long timeout)`
    `void` | `wakeup()`
    `void` | `write(byte[] data, boolean eof)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### DEFAULT_BYTE_BUFFER_SIZE

          public static final int DEFAULT_BYTE_BUFFER_SIZE

      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### XSocket

          public XSocket(java.lang.String name,
                         int bufferSize)

  - ### 方法详细资料

    - #### receiveMultipart

          public BusClient.Multipart receiveMultipart()
                                               throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### write

          public void write(byte[] data,
                            boolean eof)
                     throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### sendMultipart

          public void sendMultipart(BusClient.Multipart multipart)
                             throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### connect

          public void connect(java.lang.String addr)
                       throws java.io.IOException,
                              java.util.concurrent.TimeoutException

      抛出:
        `java.io.IOException`
        `java.util.concurrent.TimeoutException`

    - #### isConnected

          public boolean isConnected()

    - #### isReadable

          public boolean isReadable()
                             throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### wakeup

          public void wakeup()

    - #### waitReadable

          public boolean waitReadable(long timeout)
                               throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### waitWritable

          public boolean waitWritable(long timeout)
                               throws java.io.IOException

      抛出:
        `java.io.IOException`

    - #### close

          public void close()