Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PIPXSocket::WriteTo ( const void *  buf,
PINDEX  len,
const Address addr,
WORD  port 
) [virtual, inherited]

Write a datagram to a remote computer.

Returns:
TRUE if all the bytes were sucessfully written.
Parameters:
buf  Data to be written as URGENT TCP data.
len  Number of bytes pointed to by buf#.
addr  Address to which the datagram is sent.
port  Port to which the datagram is sent.

Definition at line 1266 of file winsock.cxx.

References PSocket::Host2Net(), and PChannel::lastWriteCount.

{
  lastWriteCount = 0;

  sockaddr_ipx sip;
  sip.sa_family = AF_IPX;
  AssignAddress(sip, addr);
  sip.sa_socket = Host2Net(port);
  return os_sendto(buf, len, 0, (struct sockaddr *)&sip, sizeof(sip));
}


Generated by  Doxygen 1.6.0   Back to index