code: public void setSendBufferSize(int size) throws SocketException {
          if (mSocket != null) {
              mSocket.setSendBufferSize(size);
          }
          else {
              setOption(3, new Integer(size));
          }
      }
docs: Option 3.