Download NetSim Help - Index
Transcript
<Client IP:-Message> Ex: 192.168.0.2:- Requesting for the connection Interface Source Code Interface source code written in C is given using this the user can write only the TCP Client () function. To view the interface source code, go to NetSim Installation path / src / Programming/ SocketTCP.c To find NetSim‟s Installation path right click NetSim icon and select Open file location in Windows 7 Open file location in Windows Vista Properties --> find target in Windows XP. PC to PC Communication - Socket Programming UDP Programming Guidelines This section guides the user to link his/her own code for PC to PC Communication – Socket programming to NetSim. Pre – Conditions` The user program should read the input from text file named „Input‟ with extension txt. The user program after executing the concept should write the required output to a file named „Output‟ with extension txt. General Program Flow The program begins with the Reading of the Inputs from the input file Input.txt. Executing the required concept and The results of the program should be written into the output file Output.txt. Coding Pre Requisites: The prerequisite for the creation of sockets in the Windows-based C complier is they must have winsock.h header file in its standard header file folder. In order to use the commands of the 261