* Protocol object for the socket. Currently only one protocol can be
* executing at a time for a particular socket.
*
- * uint32 flags
+ * SilcUInt32 flags
*
* Socket flags that indicate the status of the socket. This can
* indicate several different status that can affect the use of the
*
* char *hostname
* char *ip
- * uint16 port
+ * SilcUInt16 port
*
* Resolved hostname, IP address and port of the connection who owns
* this object.
SilcSocketType type;
void *user_data;
SilcProtocol protocol;
- uint32 flags;
- uint8 sock_error;
+ SilcUInt32 flags;
+ SilcUInt8 sock_error;
int users;
char *hostname;
char *ip;
- uint16 port;
+ SilcUInt16 port;
SilcBuffer inbuf;
SilcBuffer outbuf;
*
* SYNOPSIS
*
- * int silc_socket_read(SilcSocketConnection sock);
+ * int silc_socket_write(SilcSocketConnection sock);
*
* DESCRIPTION
*
* SYNOPSIS
*
* bool silc_socket_get_error(SilcSocketConnection sock, char *error,
- * uint32 error_len);
+ * SilcUInt32 error_len);
*
* DESCRIPTION
*
* Returns human readable error message into the `error' buffer if
- * the socket is int error status. Returns TRUE if error message was
+ * the socket is in error status. Returns TRUE if error message was
* written into the buffer and FALSE if there is not socket error.
*
***/
bool silc_socket_get_error(SilcSocketConnection sock, char *error,
- uint32 error_len);
+ SilcUInt32 error_len);
/****f* silcutil/SilcSocketConnectionAPI/SilcSocketConnectionHBCb
*
* SYNOPSIS
*
* void silc_socket_set_heartbeat(SilcSocketConnection sock,
- * uint32 heartbeat,
+ * SilcUInt32 heartbeat,
* void *hb_context,
* SilcSocketConnectionHBCb hb_callback,
* SilcSchedule schedule);
*
***/
void silc_socket_set_heartbeat(SilcSocketConnection sock,
- uint32 heartbeat,
+ SilcUInt32 heartbeat,
void *hb_context,
SilcSocketConnectionHBCb hb_callback,
SilcSchedule schedule);