Реферат: Интранет сети
int open_socket(unsigned int socket)
{
if (ipx_spx_installed() < 1) return -1;
_DX = socket;
_BX = 0x0000;
_AL = 0xFF;
ipx_spx();
_AH = 0;
return _AX;
}
int get_local_target(unsigned char *dest_network,
unsigned char *dest_node,
unsigned int dest_socket,
unsigned char *bridge_address)
{
unsigned int temp_ax;
struct {
unsigned char network_number [4];
unsigned char physical_node [6];
unsigned int socket;
} request_buffer;
struct {
unsigned char local_target [6];
} reply_buffer;
memcpy(request_buffer.network_number, dest_network, 4);
memcpy(request_buffer.physical_node, dest_node, 6);
request_buffer.socket = dest_socket;
_ES = FP_SEG( (void far *) &request_buffer);
_SI = FP_OFF( (void far *) &request_buffer);