Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2000 - 2007 Pekka Riikonen
+ Copyright (C) 2000 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
SilcPublicKey public_key; /* Public key used in this connection */
SilcPrivateKey private_key; /* Private key */
SilcPacketStream stream; /* Connection to remote host */
+ SilcStream socket_stream; /* Socket stream from 'stream' */
+ SilcSocket sock; /* The socket from 'socket_stream' */
SilcConnectionType type; /* Connection type */
SilcClientConnectCallback callback; /* Connection callback */
void *callback_context; /* Connection context */
* stream_create_cb, app);
*
* // Stream callback delivers our new SilcStream context
- * void stream_create_cb(SilcSocketStreamStatus status, SilcStream stream,
+ * void stream_create_cb(SilcResult status, SilcStream stream,
* void *context)
* {
* ...
- * if (status != SILC_SOCKET_OK)
+ * if (status != SILC_OK)
* error(status);
*
* // Start key exchange