Hi,
I have to open a socket connection to a server using the providers documentation. Can somebody help translate it in Java for me. This is what the documentaion has:
fd=socket(AF_INET,SOCK_STREAM,TCP_PROTO)
myaddr=(socket structure){AF_INET,wsport,myIPAddr)
bind(fd,myaddr)
apiaddr=(socketaddr structure){AF_INET,SERVER_PORT,serverIPaddr)
connect(fd,apiaddr)
AF_INET=2, SOCK_STREAM=2,TCP_PROTO=6
wsport= a unique client port
myIPAddr= client IPAddr
SERVER_PORT,serverIPaddr- known
fd- definition of socket connection
Thanks a lot,
Sanjay