Linux Socket programming help
Hi,
I'm creating a very basic chat program which doesn't use a server as such.
If the application is run with no arguments then it acts a pseudo server. If it has an argument (ip address) then it will connect to that host.
I am fairly ( :) ) sure that the applications are connecting properly but when trying to send and receive messages all I get is either a few question marks or nothing. Often it garbles the display on the client terminal.
once comiled usage is ./msg and ./msg 127.0.0.01
for server and client respectively
Any help would be greatly appreciated.
PS
I know that the whole send - receive timing and such isnt working yet I am trying to get them just to display any received messages first.