/** * @module opcua.transport */ import { TCP_transport } from './tcp_transport'; import { ErrorCallback } from '../client/client_base'; /** * a ClientTCP_transport connects to a remote server socket and * initiates a communication with a HEL/ACK transaction. * It negociates the communication parameters with the other end. * * @class ClientTCP_transport * @extends TCP_transport * @constructor * * * * @example * * ```javascript * var transport = ClientTCP_transport(url); * * transport.timeout = 1000; * * transport.connect(function(err)) { * if (err) { * // cannot connect * } else { * // connected * * } * }); * .... * * transport.write(message_chunk,'F'); * * .... * * transport.on("message",function(message_chunk) { * // do something with message from server... * }); * * * ``` * * */ export declare class ClientTCP_transport extends TCP_transport { numberOfRetry?: number; _connected: boolean; serverUri?: string; endpointUrl: string; _parameters: any; get protocolVersion(): number; set protocolVersion(v: number); get connected(): boolean; get parameters(): any; constructor(); on_socket_ended(err: Error): void; /** * @method connect * @async * @param endpointUrl {String} * @param callback {ErrorCallback} the callback function * @param [options={}] */ connect(endpointUrl: string, callback: ErrorCallback, options?: any): void; protected _handle_ACK_response(message_chunk: DataView, callback: ErrorCallback): void; protected _send_HELLO_request(): void; protected _perform_HEL_ACK_transaction(callback: ErrorCallback): void; } //# sourceMappingURL=client_tcp_transport.d.ts.map