Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_ipxsend( <hnetaddress>, <cbuffer> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_IPXSEND( <hNetAddress>, <cBuffer> )


Parameters

<hNetAddress>
Network address, as a 24-digit hexadecimal. See N_NETADDR(). If an 
address is passed, the message will be sent using the IPX protocol. You 
may send an IPX broadcast by passing '*' as the address.

<cBuffer>
Data buffer to send, up to 512 bytes.


Returns

Logical true if the message was transmitted.

Logical false if the message was not transmitted. Common reasons for
failure are that the address was invalid or that IPX is not loaded at
the sending station.


Description

This function enables network communication using IPX (Internetwork 
Packet eXchange).

IPX transmits data from source to destination on a "best effort" basis. 
Delivery is not guaranteed. Thus, while it is possible to verify that a 
message left the sending station, it is not possible to know whether it 
reached its destination, or even that the receiving station was 
listening. To guarantee delivery of your message, you must either write 
your own acknowledgment mechanism, or use SPX.

To send a broadcast message, pass '*' as the first argument:

N_IPXSEND('*', 'Hello, world!')

To send a message to specific remote station using IPX, pass a 
destination in the form of a network address obtained from N_NETADDR(), 
and a message buffer in the form of a string. The buffer may be up to 
512 bytes in length.

cBuffer = 'Watson come here, I need you.'
N_IPXSEND(N_NETADDR('WATSON'), cBuffer)

If you want to address a particular station, no matter who is logged in 
there, you can use the station number to get a network address:

N_IPXSEND(N_NETADDR(23), 'Help, I need somebody.')

If you are operating on a multi-server network or internetwork, and you 
know which server the target user is logged in on, you can address a 
message to a station on that server:

N_IPXSEND(N_NETADDR('Rhonda', 'FS2'), 'Help me, Rhonda!')



See Also: N_IPXSTATUS() N_NETADDR() N_ONIPX() N_SPXSEND()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson