fixed some spacing
This commit is contained in:
parent
969a03b3c3
commit
b8ef500278
@ -84,7 +84,6 @@ struct QSE_AIO_PACKED qse_aio_ip6addr_t
|
||||
};
|
||||
typedef struct qse_aio_ip6addr_t qse_aio_ip6addr_t;
|
||||
|
||||
|
||||
struct QSE_AIO_PACKED qse_aio_ethhdr_t
|
||||
{
|
||||
qse_uint8_t dest[QSE_AIO_ETHADDR_LEN];
|
||||
|
@ -87,7 +87,7 @@ void qse_aio_closeasyncsck (qse_aio_t* aio, qse_aio_sckhnd_t sck)
|
||||
|
||||
int qse_aio_makesckasync (qse_aio_t* aio, qse_aio_sckhnd_t sck)
|
||||
{
|
||||
return qse_aio_makesyshndasync (aio, (qse_aio_syshnd_t)sck);
|
||||
return qse_aio_makesyshndasync(aio, (qse_aio_syshnd_t)sck);
|
||||
}
|
||||
|
||||
qse_aio_sckhnd_t qse_aio_openasyncsck (qse_aio_t* aio, int domain, int type, int proto)
|
||||
@ -451,7 +451,7 @@ static int dev_sck_make_client (qse_aio_dev_t* dev, void* ctx)
|
||||
qse_aio_dev_sck_t* rdev = (qse_aio_dev_sck_t*)dev;
|
||||
qse_aio_syshnd_t* sck = (qse_aio_syshnd_t*)ctx;
|
||||
|
||||
/* nothing special is done here except setting the sock et handle.
|
||||
/* nothing special is done here except setting the socket handle.
|
||||
* most of the initialization is done by the listening socket device
|
||||
* after a client socket has been created. */
|
||||
|
||||
@ -1399,7 +1399,7 @@ static int dev_evcb_sck_ready_stateful (qse_aio_dev_t* dev, int events)
|
||||
qse_aio_scklen_t len;
|
||||
|
||||
len = QSE_SIZEOF(errcode);
|
||||
if (getsockopt (rdev->sck, SOL_SOCKET, SO_ERROR, (char*)&errcode, &len) == -1)
|
||||
if (getsockopt(rdev->sck, SOL_SOCKET, SO_ERROR, (char*)&errcode, &len) == -1)
|
||||
{
|
||||
/* the error number is set to the socket error code.
|
||||
* errno resulting from getsockopt() doesn't reflect the actual
|
||||
|
@ -520,7 +520,7 @@ int main ()
|
||||
SSL_library_init ();
|
||||
#endif
|
||||
|
||||
aio = qse_aio_open (QSE_MMGR_GETDFL(), 0, 512, QSE_NULL);
|
||||
aio = qse_aio_open(QSE_MMGR_GETDFL(), 0, 512, QSE_NULL);
|
||||
if (!aio)
|
||||
{
|
||||
printf ("Cannot open aio\n");
|
||||
@ -561,7 +561,7 @@ int main ()
|
||||
tcp_make.on_write = tcp_sck_on_write;
|
||||
tcp_make.on_read = tcp_sck_on_read;
|
||||
tcp_make.on_disconnect = tcp_sck_on_disconnect;
|
||||
tcp[0] = qse_aio_dev_sck_make (aio, QSE_SIZEOF(tcp_server_t), &tcp_make);
|
||||
tcp[0] = qse_aio_dev_sck_make(aio, QSE_SIZEOF(tcp_server_t), &tcp_make);
|
||||
if (!tcp[0])
|
||||
{
|
||||
printf ("Cannot make tcp\n");
|
||||
@ -581,7 +581,7 @@ int main ()
|
||||
qse_inittime (&tcp_conn.connect_tmout, 5, 0);
|
||||
tcp_conn.on_connect = tcp_sck_on_connect;
|
||||
tcp_conn.options = QSE_AIO_DEV_SCK_CONNECT_SSL;
|
||||
if (qse_aio_dev_sck_connect (tcp[0], &tcp_conn) <= -1)
|
||||
if (qse_aio_dev_sck_connect(tcp[0], &tcp_conn) <= -1)
|
||||
{
|
||||
printf ("qse_aio_dev_sck_connect() failed....\n");
|
||||
/* carry on regardless of failure */
|
||||
@ -594,7 +594,7 @@ int main ()
|
||||
tcp_make.on_read = tcp_sck_on_read;
|
||||
tcp_make.on_disconnect = tcp_sck_on_disconnect;
|
||||
|
||||
tcp[1] = qse_aio_dev_sck_make (aio, QSE_SIZEOF(tcp_server_t), &tcp_make);
|
||||
tcp[1] = qse_aio_dev_sck_make(aio, QSE_SIZEOF(tcp_server_t), &tcp_make);
|
||||
if (!tcp[1])
|
||||
{
|
||||
printf ("Cannot make tcp\n");
|
||||
|
Loading…
Reference in New Issue
Block a user