I\'m doing a project where I must write a network library for a device connected to a Windows machine. The complication comes in that I may only communicate with the device
Use WinPCap, it has an an API to send and listen to raw data. You can build your communicate layer with it.