-
NetInit -- This function initializes the networking.
; ----------------------------------------------
; NetInit
;
; Inputs: Name=host computer name to add to NetBIOS table
;
; Outputs: name_num=the nubmer the computer's name is in the table
;
; Purpose: Clears NetBios by using the RESET Net BIOS command and adds
; a unique name to the NetBIOS network table by using the NetBIOS
; ADD NAME command.
;
; Written by: Mark Andersen
; -----------------------------------------------
-
Net_Call -- This function is called from the Menu function (of the
Server) at the network startup.
; ----------------------------------------------
; Net_Call
;
; Inputs: remote_name=name of remote client computer
;
name=name of local computer
;
; Outputs: session_number -- The session number of the connection
;
error message if problem in connecting
;
; Input/Output: Nothing.
;
; Purpose: calls remote computer specified by remote_name (who should
; be listening) using the NetBIOS command Call. It returns the
; session number if successful or error message
;
; Written by: Mark Andersen
; -----------------------------------------------
-
Net_Listen -- This function is called from the Menu function(of
the Client) at the network startup.
; ----------------------------------------------
; Net_Listen
;
; Inputs: session_name= The name of the session that should be established
;
caller_name=the name of the server computer
;
; Outputs: session_number -- The number of the session
;
host_name: The name of the calling computer
;
error if connection not obtain after certain amount of time
;
; Input/Output: Nothing.
;
; Purpose: This program waits for a calling computer to establish a
; reliable connection using the NetBios LISTEN command. If a reliable
; connection is not obtained an error message is displayed. Otherwise
; the session number is recorded.
;
; Written by: Mark Andersen
; -----------------------------------------------
-
Send_Packet -- This function sends the packet to a networked computer.
; ----------------------------------------------
; Send_Packet
;
; Inputs: TBuffer= The buffer with the data to be sent in packet
;
session_num=the session number that is active
;
tbuflength=lenght of transmission buffer
;
;Outputs: None
;
; Input/Output: Nothing.
;
; Purpose: Takes the TBuffer and sends it in a packet to the remote
; computer using NetBIOS's SEND command.
; The session number and buffer length are both needed for the transmission
;
; Written by: Mark Andersen
; -----------------------------------------------
-
NetPost -- This function is called after a packet is recieved by
NetBIOS interrupt.
; ----------------------------------------------
; NetPost
;
; Inputs: RBuffer=Buffer with packet from the data
;
; Outputs: none
;
; Input/Output: Nothing.
;
; Purpose: Called by the NetBIOS recieve interrupt after a packet has
; been received. It processes the RBuffer and puts the data into the
; appropriate places in the Player/Enemy structure for processing
;
; Written by: Mark Andersen
; -----------------------------------------------
NetRelease -- This function terminates the network connections.
; ----------------------------------------------
; NetRelease
;
; Inputs: session_num= the session number to be closed
;
; Outputs: error if problem closing session
;
; Input/Output: Nothing.
;
; Purpose: This routine terminates the connection by using the Hangup
; NetBIOS call and it removes the machine name from the NetBIOS table by
; using the NetBIOS call DELETE NAME. It also calls NetBIOS function RESET
; to reset the network.
;
; Written by: Mark Andersen
; -----------------------------------------------