mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/RemoteChannelLookupImpl.java
private void sendInitialConnectionMessage(final RemoteChannel channel)
    {
        final int destId = getChannelSystemId(channel);

        final EncryptType encryptionType = 
                EnumConverter.convertEncryptionModeToEncryptType(m_RemoteSettings.getEncryptionMode());
        final GetEncryptionTypeResponseData encryptionInfo = 
                GetEncryptionTypeResponseData.newBuilder().setType(encryptionType).build();

        final EncryptionInfoNamespace namespace = EncryptionInfoNamespace.newBuilder()
                .setData(encryptionInfo.toByteString())
                .setType(EncryptionInfoMessageType.GetEncryptionTypeResponse).build();
        final TerraHarvestPayload payload = TerraHarvestPayload.newBuilder().setNamespace(Namespace.EncryptionInfo)
                .setNamespaceMessage(namespace.toByteString()).build();
        final TerraHarvestMessage message = TerraHarvestMessage.newBuilder().setDestId(destId)
                .setSourceId(m_TerraHarvestSystem.getId()).setIsResponse(true).setMessageId(Integer.MAX_VALUE)
                .setVersion(RemoteConstants.SPEC_VERSION).setTerraHarvestPayload(payload.toByteString())
                .setEncryptType(EncryptType.NONE).build();

        channel.queueMessage(message);
    }
/**
     * Sends a controller info response message upon connection of a channel.
     * 
     * @param channel
     *      The channel to send the controller info message over.
     */
Sends a controller info response message upon connection of a channel.

@param channel
The channel to send the controller info message over.
Sends a controller info response message upon connection of a channel . @param channel The channel to send the controller info message over .
private void sendInitialConnectionMessage(final RemoteChannel channel)
    {
        final int destId = getChannelSystemId(channel);
        final EncryptType encryptionType = 
                EnumConverter.convertEncryptionModeToEncryptType(m_RemoteSettings.getEncryptionMode());
        final GetEncryptionTypeResponseData encryptionInfo = 
                GetEncryptionTypeResponseData.newBuilder().setType(encryptionType).build();
        final EncryptionInfoNamespace namespace = EncryptionInfoNamespace.newBuilder()
                .setData(encryptionInfo.toByteString())
                .setType(EncryptionInfoMessageType.GetEncryptionTypeResponse).build();
        final TerraHarvestPayload payload = TerraHarvestPayload.newBuilder().setNamespace(Namespace.EncryptionInfo)
                .setNamespaceMessage(namespace.toByteString()).build();
        final TerraHarvestMessage message = TerraHarvestMessage.newBuilder().setDestId(destId)
                .setSourceId(m_TerraHarvestSystem.getId()).setIsResponse(true).setMessageId(Integer.MAX_VALUE)
                .setVersion(RemoteConstants.SPEC_VERSION).setTerraHarvestPayload(payload.toByteString())
                .setEncryptType(EncryptType.NONE).build();
        channel.queueMessage(message);
    }
private void sendInitialConnectionMessage ( final RemoteChannel channel ) { final int destId = getChannelSystemId ( channel ) ; final EncryptType encryptionType = EnumConverter . convertEncryptionModeToEncryptType ( m_RemoteSettings . getEncryptionMode ( ) ) ; final GetEncryptionTypeResponseData encryptionInfo = GetEncryptionTypeResponseData . newBuilder ( ) . setType ( encryptionType ) . build ( ) ; final EncryptionInfoNamespace namespace = EncryptionInfoNamespace . newBuilder ( ) . setData ( encryptionInfo . toByteString ( ) ) . setType ( EncryptionInfoMessageType . GetEncryptionTypeResponse ) . build ( ) ; final TerraHarvestPayload payload = TerraHarvestPayload . newBuilder ( ) . setNamespace ( Namespace . EncryptionInfo ) . setNamespaceMessage ( namespace . toByteString ( ) ) . build ( ) ; final TerraHarvestMessage message = TerraHarvestMessage . newBuilder ( ) . setDestId ( destId ) . setSourceId ( m_TerraHarvestSystem . getId ( ) ) . setIsResponse ( true ) . setMessageId ( Integer . MAX_VALUE ) . setVersion ( RemoteConstants . SPEC_VERSION ) . setTerraHarvestPayload ( payload . toByteString ( ) ) . setEncryptType ( EncryptType . NONE ) . build ( ) ; channel . queueMessage ( message ) ; }
Sends a controller info response message upon connection of a channel.
Sends a controller info response message upon connection of a channel .