Search Results

Search: Posts Made By: tafazzi87
Forum: Programming 01-06-2012
24,235
Posted By Corona688
You're reading from the wrong socket. After you...
You're reading from the wrong socket. After you do fd=accept(sock, ...) you should be reading from fd, not sock.
Forum: Programming 12-29-2011
7,552
Posted By JohnGraham
One mistake I notice straight-off is: ...
One mistake I notice straight-off is:


retval2=msgrcv(ad,&receive,1,1,0777);


The size parameter is in bytes, so it should be sizeof(receive) - your current code allows only a single byte to...
Forum: Programming 12-15-2011
39,579
Posted By DreamWarrior
Yes, you either need a key or to pass the...
Yes, you either need a key or to pass the segment's ID. IPC_PRIVATE is meant to be used between two programs that can pass the ID, either because one forked the other and the ID is resident, or...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy