2 * Acess2 Networking Test Suite (NetTest)
3 * - By John Hodge (thePowersGang)
12 void NetTest_Suite_Netcat(const char *Address, int Port)
15 int type = Net_ParseAddress(Address, addr);
19 int fd = Net_OpenSocket_TCPC(type, addr, Port);
21 Log_Error("Netcat", "herpaderp tcpc");
24 Log_Notice("Netcat", "Connection open");
28 while( (len = VFS_Read(fd, sizeof(buffer), buffer)) )
30 NetTest_WriteStdout(buffer, len);
33 Log_Notice("Netcat", "Closing connection");