AMX DESIGN XPRESS V 1.5 - PROGRAMMER GUIDE Guía de usuario Pagina 230

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 316
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 229
216
K
A
DAK
KwikNet TCP/IP Sockets
kn_sendto kn_sendto
Purpose Send Data to a Socket
Used by
n Task o ISP o Timer Procedure o Restart Procedure o Exit Procedure
Setup Prototype is in file KN_SOCK.H.
#include "KN_SOCK.H"
int kn_sendto(int s, void *buf, int len, int flags,
struct sockaddr *to, int tolen);
Description S is a socket descriptor identifying the socket to which data is to be sent.
The socket can be connected or unconnected.
Buf is a pointer to the buffer of data to be sent.
Len is the buffer size, measured in bytes.
Flags is a control variable used to modify the send process. Flags is 0 or
the logical OR of any of the following values.
MSG_OOB Allow sending of out-of-band data.
MSG_DONTWAIT Send message in non-blocking fashion.
To is a pointer to the address of the destination to which the data is to be
sent. The format of the IP address in structure sockaddr is described
in header file KN_SOCK.H.
This parameter is required to identify the destination address when
using a connectionless socket such as that used for UDP datagrams on a
socket of type SOCK_DGRAM. The format of the address is compatible
with that received by procedure kn_recvfrom().
Tolen is the length of the destination address.
...more
Vista de pagina 229
1 2 ... 225 226 227 228 229 230 231 232 233 234 235 ... 315 316

Comentarios a estos manuales

Sin comentarios