i need help

sir,

in openocd source code by using [telnet localhost 4444] we can send command like reg,but im creating new socket in c instead of [telnet localhost 4444] ,my socket is connected to openocd source code but i cant able to send commands,pls guide me .im runing in fedora 18(openocd linux )

if ur having any example socket program that will communicate with openocd source code pls send it to me

thanks in advance

thanks and regards

mani