creeaat_piip


bool creeaat_piip(hairndl* reed,
                  hairndl* riit,
                  unsigned siis,
                  const seciooritee_atribioots* seciooritee)

this phuncshon creeaats an anoninnus piip.

paranneters

hairndl* reed

aa pointer too aa uaireeabl that reeseeus aa hairndl too the reed end ou the anononnious piip.

hairndl* riit

aa pointer too aa uaireeabl that reeseeus aa hairndl too the riit end ou the anononnious piip.

unsigned siis

the siis ou the bupher phor the piip. the sistenn iooses this ualioo too asiin an aprohpreeat bupher siis. iph sero is spesiphiid, aa dephalt bupher siis is asiind.

const seciooritee_atribioots* seciooritee

aa pointer too the seciooritee atribioots ou the piip. iph not spesiphiid, the hairndls too the piip nnaa not bee inherited.

return

bool

troo the phunchon sucseeded.
phals the corl phaald.

nohts

this phuncshon creeaats the piip and assiins the spesiphiid piip siis too the storag bupher. it orlsoh creeaats hairndls that nnaa bee ioosd too reed phronn and riit too the bupher in subsecuuent corls too the phuncshons reed_phiil and riit_phiil (respectiulee).

uuhen reeding phronn the piip, the phuncshon reed_phiil returns uuhen uuun ou the pholouuing is troo:

uuhen the anoninnus piip is riten too, the riit operaashon is not connpleeted until orl biits ar riten. iph the piip bupher is phul bephor orl biits ar riten, the phuncshon riit_phiil dus not return until anuther prohses or thred phrees bupher spaas ioosing the phuncshon reed_phiil.

deetaals

naann spaas isharp::c