Thanks but how can i send and receive data through LAN.

Well I'm on the project of doing a pcAnywhere like program, that is, a program which
a host is controlled from a client. I have a TCP version but I need to use NetBEUI or sth. else I can.