scp_client_misc.c
SCP client.
Helper functions for SCP client.
SSH connection protocol.
SshConnection * sshOpenConnection(SshContext *context, Socket *socket)
Open a new SSH connection.
Definition: ssh_misc.c:68
error_t scpClientProcessEvents(ScpClientContext *context)
Process SCP client events.
Definition: scp_client_misc.c:380
error_t scpClientSendDirective(ScpClientContext *context, const ScpDirective *directive)
Send a SCP directive to the server.
Definition: scp_client_misc.c:194
void scpClientChangeState(ScpClientContext *context, ScpClientState newState)
Update SCP client state.
Definition: scp_client_misc.c:53
error_t sshInit(SshContext *context, SshConnection *connections, uint_t numConnections, SshChannel *channels, uint_t numChannels)
SSH context initialization.
Definition: ssh.c:58
error_t sshReadChannel(SshChannel *channel, void *data, size_t size, size_t *received, uint_t flags)
Receive data from the specified channel.
Definition: ssh.c:2205
error_t scpClientOpenConnection(ScpClientContext *context)
Open SSH connection.
Definition: scp_client_misc.c:70
int_t socket(int_t family, int_t type, int_t protocol)
Create a socket that is bound to a specific transport service provider.
Definition: bsd_socket.c:65
error_t sshProcessConnectionEvents(SshContext *context, SshConnection *connection)
Connection event handler.
Definition: ssh_misc.c:375
error_t sshWriteChannel(SshChannel *channel, const void *data, size_t length, size_t *written, uint_t flags)
Write data to the specified channel.
Definition: ssh.c:2076
error_t socketPoll(SocketEventDesc *eventDesc, uint_t size, OsEvent *extEvent, systime_t timeout)
Wait for one of a set of sockets to become ready to perform I/O.
Definition: socket.c:2182
size_t scpFormatDirective(const ScpDirective *directive, char_t *buffer)
Format SCP directive.
Definition: scp_common.c:48
void scpClientCloseConnection(ScpClientContext *context)
Close SSH connection.
Definition: scp_client_misc.c:173
void sshRegisterConnectionEvents(SshContext *context, SshConnection *connection, SocketEventDesc *eventDesc)
Register connection events.
Definition: ssh_misc.c:282
Socket * socketOpenEx(NetContext *context, uint_t type, uint_t protocol)
Create a socket.
Definition: socket.c:146
SSH helper functions.
error_t scpParseDirective(const char_t *buffer, ScpDirective *directive)
Parse SCP directive.
Definition: scp_common.c:127
error_t sshSetOperationMode(SshContext *context, SshOperationMode mode)
Set operation mode (client or server)
Definition: ssh.c:167
Secure Shell (SSH)
error_t scpClientCheckTimeout(ScpClientContext *context)
Determine whether a timeout error has occurred.
Definition: scp_client_misc.c:454
error_t socketSetTimeout(Socket *socket, systime_t timeout)
Set timeout value for blocking operations.
Definition: socket.c:169
Global request and channel request handling.
error_t scpClientReceiveDirective(ScpClientContext *context, ScpDirective *directive)
Receive a SCP directive from the server.
Definition: scp_client_misc.c:260
Debugging facilities.
error_t scpClientEstablishConnection(ScpClientContext *context)
Establish SSH connection.
Definition: scp_client_misc.c:140
