DCC only allows file transfers of up to 4 GiB big files
DCC only allows file transfers of up to 4 GiB big files

Make CDCCSock use uint32_t to generate the "unsigned, 4 byte integer in network
byte order" which is used to acknowledge the received data. Also make
OpenFile() abort for files bigger than 4 GiB, because we would run into
integer overflows later on. These transfers might work with some remote client,
but ZNC is (no longer?) one of them. ;)

Thanks to KiNgMaR for the original patch and some help with the uint32_t stuff.


git-svn-id: 3ad904ec35b89a071badd9cb0113dfe58093e920@1461 726aef4b-f618-498e-8847-2d620e286838

psychon/znc,KiNgMaR/znc,GLolol/znc,kashike/znc,znc/znc,Adam-/znc,Mikaela/znc,Mkaysi/znc,Adam-/znc,reedloden/znc,jreese/znc,Mkaysi/znc,jantman/znc,Phansa/znc,Adam-/znc,KielBNC/znc,KielBNC/znc,KielBNC/znc,Zarthus/znc,withinsoft/znc,Phansa/znc,wolfy1339/znc,jpnurmi/znc,Kriechi/znc,anthonyryan1/znc,jantman/znc,reedloden/znc,jreese/znc,psychon/znc,markusj/znc,wolfy1339/znc,jreese/znc,Mkaysi/znc,znc/znc,ollie27/znc,znc/znc,Mkaysi/znc,TuffLuck/znc,dgw/znc,aarondunlap/znc,YourBNC/znc,dgw/znc,reedloden/znc,Zarthus/znc,KiNgMaR/znc,TingPing/znc,YourBNC/znc,Kriechi/znc,YourBNC/znc,markusj/znc,Zarthus/znc,Zarthus/znc,Adam-/znc,trisk/znc,trisk/znc,badloop/znc,Kriechi/znc,markusj/znc,jreese/znc,GLolol/znc,TuffLuck/znc,kashike/znc,GLolol/znc,dgw/znc,jantman/znc,BtbN/znc,TuffLuck/znc,jpnurmi/znc,YourBNC/znc,BtbN/znc,DarthGandalf/znc,KielBNC/znc,Zarthus/znc,aarondunlap/znc,KiNgMaR/znc,DarthGandalf/znc,ollie27/znc,jantman/znc,Hasimir/znc,ollie27/znc,BtbN/znc,Kriechi/nobnc,aarondunlap/znc,Adam-/znc,DarthGandalf/znc,DarthGandalf/znc,Kriechi/nobnc,trisk/znc,markusj/znc,withinsoft/znc,elyscape/znc,TuffLuck/znc,evilnet/znc,elyscape/znc,psychon/znc,GLolol/znc,BtbN/znc,elyscape/znc,TingPing/znc,reedloden/znc,wolfy1339/znc,Mikaela/znc,Hasimir/znc,badloop/znc,Phansa/znc,TuffLuck/znc,aarondunlap/znc,Hasimir/znc,psychon/znc,psychon/znc,badloop/znc,badloop/znc,elyscape/znc,Mikaela/znc,KiNgMaR/znc,YourBNC/znc,KielBNC/znc,TingPing/znc,jantman/znc,jreese/znc,Mkaysi/znc,wolfy1339/znc,TingPing/znc,dgw/znc,anthonyryan1/znc,evilnet/znc,Kriechi/znc,Hasimir/znc,markusj/znc,badloop/znc,Zarthus/znc,DarthGandalf/znc,dgw/znc,kashike/znc,KiNgMaR/znc,Adam-/znc,jantman/znc,Hasimir/znc,Adam-/znc,TuffLuck/znc,ollie27/znc,ollie27/znc,markusj/znc,evilnet/znc,elyscape/znc,aarondunlap/znc,kashike/znc,wolfy1339/znc,Mikaela/znc,elyscape/znc,Phansa/znc,badloop/znc,withinsoft/znc,znc/znc,Phansa/znc,Kriechi/znc,anthonyryan1/znc,Mkaysi/znc,jpnurmi/znc,YourBNC/znc,DarthGandalf/znc,jpnurmi/znc,anthonyryan1/znc,Mikaela/znc,Mikaela/znc,KielBNC/znc,znc/znc,withinsoft/znc,Mikaela/znc,trisk/znc,ollie27/znc,jpnurmi/znc,anthonyryan1/znc,jpnurmi/znc,trisk/znc,Hasimir/znc,reedloden/znc,Mkaysi/znc,withinsoft/znc,withinsoft/znc,kashike/znc,KiNgMaR/znc,badloop/znc,BtbN/znc,jpnurmi/znc,anthonyryan1/znc,BtbN/znc,wolfy1339/znc,GLolol/znc,Hasimir/znc,evilnet/znc,Kriechi/nobnc,TingPing/znc,GLolol/znc,jreese/znc,kashike/znc,znc/znc,dgw/znc,reedloden/znc,TuffLuck/znc,aarondunlap/znc,anthonyryan1/znc,evilnet/znc,Phansa/znc,evilnet/znc,trisk/znc,aarondunlap/znc,psychon/znc,TingPing/znc,Kriechi/znc